From c39299852752bdee0aafca66d0bcc7ec2f720d8c Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 14 Jan 2017 05:40:14 +1000 Subject: [PATCH] Make sure minigames can't invite an invalid client --- qcsrc/common/minigames/sv_minigames.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/minigames/sv_minigames.qc b/qcsrc/common/minigames/sv_minigames.qc index 5f1d1280b..033a524fb 100644 --- a/qcsrc/common/minigames/sv_minigames.qc +++ b/qcsrc/common/minigames/sv_minigames.qc @@ -264,7 +264,7 @@ string invite_minigame(entity inviter, entity player) { if ( !inviter || !inviter.active_minigame ) return "Invalid minigame"; - if ( !VerifyClientEntity(player, true, false) ) + if ( VerifyClientEntity(player, true, false) <= 0 ) return "Invalid player"; if ( inviter == player ) return "You can't invite yourself"; -- 2.39.2