mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-10 03:48:25 +00:00
fix wrong variable used in LessStupidGetMapDisplayName
This commit is contained in:
parent
b468f9d67a
commit
afa6b07da8
@ -283,8 +283,8 @@ stock void LessStupidGetMapDisplayName(const char[] map, char[] displayName, int
|
|||||||
strcopy(temp, sizeof(temp), map);
|
strcopy(temp, sizeof(temp), map);
|
||||||
ReplaceString(temp, sizeof(temp), "\\", "/", true);
|
ReplaceString(temp, sizeof(temp), "\\", "/", true);
|
||||||
|
|
||||||
int slashpos = FindCharInString(map, '/', true);
|
int slashpos = FindCharInString(temp, '/', true);
|
||||||
strcopy(temp2, sizeof(temp2), map[slashpos+1]);
|
strcopy(temp2, sizeof(temp2), temp[slashpos+1]);
|
||||||
|
|
||||||
int ugcpos = StrContains(temp2, ".ugc", true);
|
int ugcpos = StrContains(temp2, ".ugc", true);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user