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 95d545ff41
commit bd0b18714a

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;