Fixed CP exploit fix no.2 doing nothing.

This commit is contained in:
shavitush 2017-07-16 22:20:49 +03:00
parent 0b738c4c2f
commit d655a13220

View File

@ -1468,7 +1468,7 @@ void SaveCheckpoint(int client, int index)
void TeleportToCheckpoint(int client, int index)
{
if(index >= 0 && index < CP_MAX && IsNullVector(gF_Checkpoints[client][index][0]))
if(index < 0 || index >= CP_MAX || IsNullVector(gF_Checkpoints[client][index][0]))
{
return;
}