From 8e6d4f0f35c7f400c964417cd27833d572c7c35a Mon Sep 17 00:00:00 2001 From: Richard Helgeby Date: Sat, 21 Mar 2015 15:52:56 +0100 Subject: [PATCH] Fix compile error in class.api.inc. Old code referenced non-existing function. We should have a getter function for selected classes, but I'm not doing this yet. --- src/zr/api/class.api.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zr/api/class.api.inc b/src/zr/api/class.api.inc index dd69def..6ecada3 100644 --- a/src/zr/api/class.api.inc +++ b/src/zr/api/class.api.inc @@ -81,7 +81,7 @@ public APIGetHumanClass(Handle:plugin, numParams) // Validate the client index. Player must be alive. APIValidateClientIndex(client, Condition_True); - return ClassGetHumanIndex(client); + return ClassSelected[client][ZR_CLASS_TEAM_HUMANS]; } /** @@ -96,7 +96,7 @@ public APIGetZombieClass(Handle:plugin, numParams) // Validate the client index. Player must be alive. APIValidateClientIndex(client, Condition_True); - return ClassGetZombieIndex(client); + return ClassSelected[client][ZR_CLASS_TEAM_ZOMBIES]; } /**