From 63819ebfc9559d0fdc47babc7b54feb8ee656018 Mon Sep 17 00:00:00 2001 From: FortyTwoFortyTwo Date: Sun, 10 Dec 2023 13:54:39 +0000 Subject: [PATCH] Fix able to spawn as unknown class --- addons/sourcemod/scripting/szf/classes.sp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sourcemod/scripting/szf/classes.sp b/addons/sourcemod/scripting/szf/classes.sp index bed2af70..cbc0b4fd 100644 --- a/addons/sourcemod/scripting/szf/classes.sp +++ b/addons/sourcemod/scripting/szf/classes.sp @@ -110,7 +110,7 @@ bool Classes_LoadTeam(KeyValues kv, const char[] sKey, ClientClasses classes[vie } //Clear classes and set default value - for (int i; i < sizeof(classes); i++) + for (int i = 1; i < sizeof(classes); i++) { delete classes[i].aWeapons; classes[i] = class;