(118683d11) Fixed crashing when generating levels in the level editor.

This commit is contained in:
Joonas Rikkonen
2019-04-29 21:13:20 +03:00
parent 8d3d103e17
commit ad298c69c2
2 changed files with 27 additions and 1 deletions
@@ -432,7 +432,7 @@ namespace Barotrauma
{
//prevent picking up (or deattaching) items
#if CLIENT
if (GameMain.GameSession.GameMode is TutorialMode)
if (GameMain.GameSession?.GameMode is TutorialMode)
{
continue;
}