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
@@ -19,7 +19,7 @@ namespace Barotrauma
public void CreateItems()
{
WayPoint wp = WayPoint.GetRandom(SpawnType.Cargo);
WayPoint wp = WayPoint.GetRandom(SpawnType.Cargo, null, Submarine.MainSub);
if (wp==null)
{