Skip to content

Commit

Permalink
GiveDefuserToRandomPlayer: fix assertation
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov committed Dec 13, 2023
1 parent 75a6f0d commit 603d5a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regamedll/dlls/multiplay_gamerules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 603d5a5

Please sign in to comment.