mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-06 18:08:26 +00:00
some random error about a null checkpoints array comes up sometimes
L 01/24/2022 - 17:51:57: [SM] Exception reported: Invalid Handle 0 (error: 4) L 01/24/2022 - 17:51:57: [SM] Blaming: shavit-checkpoints.smx L 01/24/2022 - 17:51:57: [SM] Call stack trace: L 01/24/2022 - 17:51:57: [SM] [0] ArrayList.Length.get L 01/24/2022 - 17:51:57: [SM] [1] Line 1088, D:\sourcemod-1.10.0-git6528-windows\addons\sourcemod\scripting\shavit-checkpoints.sp::OpenNormalCPMenu L 01/24/2022 - 17:51:57: [SM] [2] Line 949, D:\sourcemod-1.10.0-git6528-windows\addons\sourcemod\scripting\shavit-checkpoints.sp::OpenCheckpointsMenu L 01/24/2022 - 17:51:57: [SM] [3] Line 787, D:\sourcemod-1.10.0-git6528-windows\addons\sourcemod\scripting\shavit-checkpoints.sp::Command_Checkpoints
This commit is contained in:
parent
0bde3c42b6
commit
44eb29e27c
@ -779,6 +779,11 @@ public Action Command_Checkpoints(int client, int args)
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
if (!gA_Checkpoints[client]) // probably got here from another plugin doing `FakeClientCommandEx(param1, "sm_checkpoints");` too early or too late
|
||||
{
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
if(Shavit_GetStyleSettingInt(gI_Style[client], "kzcheckpoints"))
|
||||
{
|
||||
gB_ClosedKZCP[client] = false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user