never spawn parachutes outside the map

fixes #6302
This commit is contained in:
Matthias Mailänder
2014-08-24 14:07:18 +02:00
parent f0e6eee7e1
commit 3f66d310db
2 changed files with 4 additions and 1 deletions

View File

@@ -77,6 +77,9 @@ namespace OpenRA.Mods.RA
if (droppedAt.Contains(self.Location) || checkForSuitableCell && !IsSuitableCell(cargo.Peek(self), self.Location))
return;
if (!self.World.Map.Contains(self.Location))
return;
// unload a dude here
droppedAt.Add(self.Location);