oh ffs. old world was being referenced. fixed so it crashes if you do that.

This commit is contained in:
Chris Forbes
2010-01-19 11:21:45 +13:00
parent e82a398091
commit 00abdce68f
5 changed files with 16 additions and 10 deletions

View File

@@ -4,6 +4,7 @@ using System.Linq;
using OpenRa.FileFormats;
using OpenRa.Support;
using OpenRa.Traits;
using System.Diagnostics;
namespace OpenRa
{
@@ -143,9 +144,7 @@ namespace OpenRa
return ret;
}
[System.Diagnostics.Conditional( "SANITY_CHECKS" )]
[Conditional( "SANITY_CHECKS" )]
static void CheckSanePath( List<int2> path )
{
if( path.Count == 0 )
@@ -160,7 +159,7 @@ namespace OpenRa
}
}
[System.Diagnostics.Conditional("SANITY_CHECKS")]
[Conditional("SANITY_CHECKS")]
static void CheckSanePath2(List<int2> path, int2 src, int2 dest)
{
if (path.Count == 0)