Make sure minigames can't invite an invalid client
authorMario <mario@smbclan.net>
Fri, 13 Jan 2017 19:40:14 +0000 (05:40 +1000)
committerMario <mario@smbclan.net>
Fri, 13 Jan 2017 19:40:14 +0000 (05:40 +1000)
qcsrc/common/minigames/sv_minigames.qc

index 5f1d128..033a524 100644 (file)
@@ -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";