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:
parent
542d3d345e
commit
8e6d4f0f35
|
@ -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];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user