Add map.contains check to CanStayInCell
This commit is contained in:
@@ -312,6 +312,9 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
public bool CanStayInCell(CPos cell)
|
||||
{
|
||||
if (!world.Map.Contains(cell))
|
||||
return false;
|
||||
|
||||
return !GetCache(cell).CellFlag.HasCellFlag(CellFlag.HasTransitOnlyActor);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user