fix wrong variable used in LessStupidGetMapDisplayName

This commit is contained in:
rtldg 2023-01-05 11:48:58 +00:00
parent b468f9d67a
commit afa6b07da8

View File

@ -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);