avoid NullReferenceException in updatedRegion

fixes #6166
This commit is contained in:
Matthias Mailänder
2014-08-10 08:20:55 +02:00
parent 780fd0df29
commit 50ab941d1f

View File

@@ -231,7 +231,7 @@ namespace OpenRA.Mods.RA
if (shroud != null) if (shroud != null)
{ {
// If the current shroud hasn't changed and we have already updated the specified area, we don't need to do anything. // If the current shroud hasn't changed and we have already updated the specified area, we don't need to do anything.
if (lastShroudHash == shroud.Hash && !clearedForNullShroud && updatedRegion.Contains(region)) if (lastShroudHash == shroud.Hash && !clearedForNullShroud && updatedRegion != null && updatedRegion.Contains(region))
return; return;
lastShroudHash = shroud.Hash; lastShroudHash = shroud.Hash;