(52748e937) Fixed nullref exception if a character eats another one when a gamesession has not been started

This commit is contained in:
Joonas Rikkonen
2019-04-01 22:53:12 +03:00
parent ae3dea40b0
commit 98e0504e1f
4 changed files with 41 additions and 42 deletions
@@ -329,7 +329,7 @@ namespace Barotrauma
if (nonSeveredJoints.Length == 0)
{
//only one limb left, the character is now full eaten
Entity.Spawner.AddToRemoveQueue(targetCharacter);
Entity.Spawner?.AddToRemoveQueue(targetCharacter);
character.SelectedCharacter = null;
}
else //sever a random joint