go back a level before getting key

This commit is contained in:
oldcustard 2023-03-02 01:06:56 +11:00
parent 71c90a9270
commit 7e13d71b0b

View File

@ -103,6 +103,7 @@ bool LoadConfig(char[] config_name, int maxlength)
if (StrContains(current_map, current_key, false) != -1) if (StrContains(current_map, current_key, false) != -1)
{ {
map_configs.GoBack()
map_configs.GetString(current_key, config_name, maxlength); map_configs.GetString(current_key, config_name, maxlength);
PrintToServer("[AUTOCONFIG] Found applicable config: %s", config_name); PrintToServer("[AUTOCONFIG] Found applicable config: %s", config_name);
return true; return true;