mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 18:38:26 +00:00
Fix Shavit_SaveCheckpoint Native
This commit is contained in:
parent
06addf326f
commit
cbda666700
@ -3595,17 +3595,17 @@ public any Native_SaveCheckpoint(Handle plugin, int numParams)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if(SaveCheckpoint(client, gA_Checkpoints[client].Length + 1))
|
||||
if(SaveCheckpoint(client, gA_Checkpoints[client].Length))
|
||||
{
|
||||
gI_CurrentCheckpoint[client] = gA_Checkpoints[client].Length + 1;
|
||||
gI_CurrentCheckpoint[client] = gA_Checkpoints[client].Length;
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
if(SaveCheckpoint(client, gA_Checkpoints[client].Length + 1, bOverflow))
|
||||
if(SaveCheckpoint(client, gA_Checkpoints[client].Length, bOverflow))
|
||||
{
|
||||
gI_CurrentCheckpoint[client] = (bOverflow)? iMaxCPs:gA_Checkpoints[client].Length + 1;
|
||||
gI_CurrentCheckpoint[client] = (bOverflow)? iMaxCPs:gA_Checkpoints[client].Length;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user