Merge pull request #6226 from Mailaender/shroud-updatedregion-nre
Fixed a crash when there are no actors to reveal shroud on the map.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user