fix crash loading a map that lacks [TERRAIN] (no trees)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user