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.
This commit is contained in:
Richard Helgeby 2015-03-21 15:52:56 +01:00
parent 542d3d345e
commit 8e6d4f0f35
1 changed files with 2 additions and 2 deletions

View File

@ -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];
}
/**