From e9aa05bb9c30f2b879133bb87b055b536e7cdd1f Mon Sep 17 00:00:00 2001 From: Kiss Attila Date: Sun, 31 Jan 2016 21:45:06 +0100 Subject: [PATCH] Make possible to remove all player classes --- src/Scripting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Scripting.cpp b/src/Scripting.cpp index 4f25283..c9afb63 100644 --- a/src/Scripting.cpp +++ b/src/Scripting.cpp @@ -812,7 +812,7 @@ static cell AMX_NATIVE_CALL Natives::RemoveLastClass(AMX *amx, cell *params) if(!pServer) return 0; - if(pNetGame->iSpawnsAvailable <= 1) + if(pNetGame->iSpawnsAvailable <= 0) return 0; pNetGame->iSpawnsAvailable--;