fix error that happens if you 'sm_tele 0' with no checkpoints (#962)

This commit is contained in:
Joe 2020-10-15 09:59:12 -05:00 committed by GitHub
parent 62c75ac242
commit f603d63e62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2395,7 +2395,7 @@ bool SaveCheckpoint(int client, int index, bool overflow = false)
void TeleportToCheckpoint(int client, int index, bool suppressMessage)
{
if(index < 0 || index > gCV_MaxCP.IntValue || (!gCV_Checkpoints.BoolValue && !CanSegment(client)))
if(index < 1 || index > gCV_MaxCP.IntValue || (!gCV_Checkpoints.BoolValue && !CanSegment(client)))
{
return;
}