mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: client: don't segfault when client wasn't loaded
This commit is contained in:
parent
d8724f0be4
commit
ab43486ee0
@ -276,7 +276,8 @@ void IN_ActivateMouse( void )
|
||||
return;
|
||||
|
||||
IN_CheckMouseState( true );
|
||||
clgame.dllFuncs.IN_ActivateMouse();
|
||||
if( clgame.dllFuncs.IN_ActivateMouse )
|
||||
clgame.dllFuncs.IN_ActivateMouse();
|
||||
in_mouseactive = true;
|
||||
}
|
||||
|
||||
@ -293,7 +294,8 @@ void IN_DeactivateMouse( void )
|
||||
return;
|
||||
|
||||
IN_CheckMouseState( false );
|
||||
clgame.dllFuncs.IN_DeactivateMouse();
|
||||
if( clgame.dllFuncs.IN_DeactivateMouse )
|
||||
clgame.dllFuncs.IN_DeactivateMouse();
|
||||
in_mouseactive = false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user