From 8385563befddf0d566ff322aff4f3dcacba8165f Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 30 Mar 2019 01:29:10 +0300 Subject: [PATCH] engine: fix possible crash during exit --- engine/client/input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/client/input.c b/engine/client/input.c index de983bcf..3953911d 100644 --- a/engine/client/input.c +++ b/engine/client/input.c @@ -136,7 +136,8 @@ void IN_ToggleClientMouse( int newstate, int oldstate ) if( oldstate == key_game ) { - clgame.dllFuncs.IN_DeactivateMouse(); + if( cls.initialized ) + clgame.dllFuncs.IN_DeactivateMouse(); } else if( newstate == key_game ) {