Browse Source

engine: fix possible crash during exit

pull/2/head
Alibek Omarov 6 years ago
parent
commit
8385563bef
  1. 3
      engine/client/input.c

3
engine/client/input.c

@ -136,7 +136,8 @@ void IN_ToggleClientMouse( int newstate, int oldstate )
if( oldstate == key_game ) if( oldstate == key_game )
{ {
clgame.dllFuncs.IN_DeactivateMouse(); if( cls.initialized )
clgame.dllFuncs.IN_DeactivateMouse();
} }
else if( newstate == key_game ) else if( newstate == key_game )
{ {

Loading…
Cancel
Save