From 12466e304ef5cdae645d58d41b40d73c04e5e3b6 Mon Sep 17 00:00:00 2001 From: Regalis Date: Sat, 25 Feb 2017 15:03:10 +0200 Subject: [PATCH] Fixed server failing to start a round if there's a selected cargo spawnpoint is not inside a hull --- Subsurface/Source/Networking/GameServer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Subsurface/Source/Networking/GameServer.cs b/Subsurface/Source/Networking/GameServer.cs index f6c108f75..0492bbe9f 100644 --- a/Subsurface/Source/Networking/GameServer.cs +++ b/Subsurface/Source/Networking/GameServer.cs @@ -1035,9 +1035,9 @@ namespace Barotrauma.Networking WayPoint cargoSpawnPos = WayPoint.GetRandom(SpawnType.Cargo, null, sub); - if (cargoSpawnPos == null) + if (cargoSpawnPos == null || cargoSpawnPos.CurrentHull == null) { - DebugConsole.ThrowError("Couldn't spawn additional cargo (cargo spawnpoint not found)"); + DebugConsole.ThrowError("Couldn't spawn additional cargo (no cargo spawnpoint inside any of the hulls)"); continue; }