Fixed docking ports leaking if multiple vessels have docked to the main sub, cargo is always spawned in the main sub

This commit is contained in:
Regalis
2016-08-19 20:13:24 +03:00
parent ef0098d52a
commit 08817090a0
5 changed files with 9 additions and 3 deletions
@@ -54,7 +54,7 @@ namespace Barotrauma
return;
}
WayPoint cargoSpawnPos = WayPoint.GetRandom(SpawnType.Cargo);
WayPoint cargoSpawnPos = WayPoint.GetRandom(SpawnType.Cargo, null, Submarine.MainSub);
if (cargoSpawnPos==null)
{
DebugConsole.ThrowError("Couldn't spawn items for cargo mission, cargo spawnpoint not found");