Prevent shroud from being revealed outside the map cordon.

Fixes #8947.
This commit is contained in:
Paul Chote
2015-08-04 23:10:40 +01:00
parent 3ed40090f7
commit c1fcd5fb47

View File

@@ -193,7 +193,7 @@ namespace OpenRA.Traits
foreach (var puv in cells)
{
var uv = (MPos)puv;
if (!explored[uv])
if (map.Contains(puv) && !explored[uv])
{
explored[uv] = true;
changed.Add(puv);