diff --git a/src/zr/playerclasses/playerclasses.inc b/src/zr/playerclasses/playerclasses.inc index 66edea6..ada7748 100644 --- a/src/zr/playerclasses/playerclasses.inc +++ b/src/zr/playerclasses/playerclasses.inc @@ -1026,7 +1026,7 @@ ClassClientSetDefaultIndexes(client = -1) // If not, fall back to default class indexes. Otherwise substract // index by one. if (zombieindex <= 0 || - !(ClassGetTeamID(zombieindex - 1) == ZR_CLASS_TEAM_ZOMBIES) || + !ClassTeamCompare(zombieindex - 1, ZR_CLASS_TEAM_ZOMBIES) || !ClassFilterMatch(zombieindex - 1, filter)) { zombieindex = ClassGetDefaultSpawnClass(ZR_CLASS_TEAM_ZOMBIES, filter); @@ -1038,7 +1038,7 @@ ClassClientSetDefaultIndexes(client = -1) } if (humanindex <= 0 || - !(ClassGetTeamID(humanindex - 1) == ZR_CLASS_TEAM_HUMANS) || + !ClassTeamCompare(humanindex - 1, ZR_CLASS_TEAM_HUMANS) || !ClassFilterMatch(humanindex - 1, filter)) { humanindex = ClassGetDefaultSpawnClass(ZR_CLASS_TEAM_HUMANS, filter); @@ -1050,7 +1050,7 @@ ClassClientSetDefaultIndexes(client = -1) } if (adminindex <= 0 || - !(ClassGetTeamID(adminindex - 1) == ZR_CLASS_TEAM_ADMINS) || + !ClassTeamCompare(adminindex - 1, ZR_CLASS_TEAM_ADMINS) || !ClassFilterMatch(adminindex - 1, filter)) { adminindex = ClassGetDefaultSpawnClass(ZR_CLASS_TEAM_ADMINS, filter);