Fixed launcher throwing a null reference exception because of a reference to GameMain in PlayerInput
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user