initialise previousGameState to something valid and not gsSuspend
authornemo
Wed, 01 Nov 2017 22:49:54 -0400
changeset 12818 d3113a4cba36
parent 12817 b35b6978baa4
child 12819 3fc7569c1203
initialise previousGameState to something valid and not gsSuspend
hedgewars/hwengine.pas
--- a/hedgewars/hwengine.pas	Wed Nov 01 22:02:52 2017 +0100
+++ b/hedgewars/hwengine.pas	Wed Nov 01 22:49:54 2017 -0400
@@ -168,6 +168,7 @@
     previousGameState: TGameState;
     wheelEvent: boolean;
 begin
+    previousGameState:= gsStart;
     isTerminated:= false;
     PrevTime:= SDL_GetTicks;
     while (not isTerminated) and allOK do