From 6d24450f275e516d90c27b2733d9b57c93d0c6dd Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 4 Feb 2010 21:01:17 +1300 Subject: [PATCH] fix crash loading a map that lacks [TERRAIN] (no trees) --- OpenRa.FileFormats/Map.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRa.FileFormats/Map.cs b/OpenRa.FileFormats/Map.cs index 0827a6a71c..342bce0c8c 100644 --- a/OpenRa.FileFormats/Map.cs +++ b/OpenRa.FileFormats/Map.cs @@ -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;