fix crash after getting kicked from a server

This commit is contained in:
pierow 2024-03-12 08:04:52 -04:00
parent 0e53e0ee3d
commit 42346aee87
1 changed files with 2 additions and 1 deletions

View File

@ -445,7 +445,8 @@ void WeaponsResource::UserCmd_MovementOff()
IN_Attack2Up(); IN_Attack2Up();
IN_ReloadUp(); IN_ReloadUp();
if (gViewPort) // Check if we're in game.
if (gEngfuncs.pfnGetLevelName()[0] != 0)
{ {
if (gHUD.GetHUDUser3() == AVH_USER3_ALIEN_PLAYER2) if (gHUD.GetHUDUser3() == AVH_USER3_ALIEN_PLAYER2)
{ {