fix crash loading a map that lacks [TERRAIN] (no trees)

This commit is contained in:
Chris Forbes
2010-02-04 21:01:17 +13:00
parent c6168d318e
commit 6d24450f27

View File

@@ -141,7 +141,7 @@ namespace OpenRa.FileFormats
void ReadTrees( IniFile file )
{
IniSection terrain = file.GetSection( "TERRAIN" );
IniSection terrain = file.GetSection( "TERRAIN", true );
if( terrain == null )
return;