From 603d5a5519fd509c934cd8f0548acccdeacc7d4d Mon Sep 17 00:00:00 2001 From: Sergey Shorokhov Date: Wed, 13 Dec 2023 15:40:41 +0300 Subject: [PATCH] GiveDefuserToRandomPlayer: fix assertation --- regamedll/dlls/multiplay_gamerules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regamedll/dlls/multiplay_gamerules.cpp b/regamedll/dlls/multiplay_gamerules.cpp index dbceda681..41dd7496a 100644 --- a/regamedll/dlls/multiplay_gamerules.cpp +++ b/regamedll/dlls/multiplay_gamerules.cpp @@ -5421,7 +5421,7 @@ void CHalfLifeMultiplay::GiveDefuserToRandomPlayer() for ( int i = 0; i < iDefusersToGive && i < candidates.Count(); ++i ) { CBasePlayer *pPlayer = candidates[i]; - Assert( pPlayer && pPlayer->m_iTeam != CT && pPlayer->IsAlive() ); + Assert( pPlayer && pPlayer->m_iTeam == CT && pPlayer->IsAlive() ); pPlayer->GiveDefuser(); ClientPrint(pPlayer->pev, HUD_PRINTCENTER, "#Got_defuser");