Fixed launcher throwing a null reference exception because of a reference to GameMain in PlayerInput

This commit is contained in:
Joonas Rikkonen
2018-02-21 23:43:40 +02:00
parent 637d473773
commit b4582b6188
2 changed files with 20 additions and 20 deletions
@@ -360,8 +360,11 @@ namespace Barotrauma
fixedTime.ElapsedGameTime = addTime;
fixedTime.TotalGameTime.Add(addTime);
base.Update(fixedTime);
PlayerInput.Update(Timing.Step);
if (WindowActive)
{
PlayerInput.Update(Timing.Step);
}
if (loadingScreenOpen)
{