diff --git a/addons/sourcemod/scripting/include/shavit/core.inc b/addons/sourcemod/scripting/include/shavit/core.inc index 07ba503d..20de98a1 100644 --- a/addons/sourcemod/scripting/include/shavit/core.inc +++ b/addons/sourcemod/scripting/include/shavit/core.inc @@ -283,8 +283,8 @@ stock void LessStupidGetMapDisplayName(const char[] map, char[] displayName, int strcopy(temp, sizeof(temp), map); ReplaceString(temp, sizeof(temp), "\\", "/", true); - int slashpos = FindCharInString(map, '/', true); - strcopy(temp2, sizeof(temp2), map[slashpos+1]); + int slashpos = FindCharInString(temp, '/', true); + strcopy(temp2, sizeof(temp2), temp[slashpos+1]); int ugcpos = StrContains(temp2, ".ugc", true);