* Fixed Bug #5072: RenderLandingCraft doesn't do an IsInMap check

https://github.com/OpenRA/OpenRA/issues/5072
This commit is contained in:
Peter Orzell
2014-04-20 22:05:33 -04:00
parent 44d57204d0
commit 27ab36d266

View File

@@ -46,7 +46,7 @@ namespace OpenRA.Mods.RA.Render
return false;
return cargo.CurrentAdjacentCells
.Any(c => info.OpenTerrainTypes.Contains(self.World.GetTerrainType(c)));
.Any(c => self.World.Map.IsInMap(c) && info.OpenTerrainTypes.Contains(self.World.GetTerrainType(c)) );
}
void Open()