Skip to content

Commit df9b917

Browse files
author
Sergey Shorokhov
committed
online checker: fix mapname getting
1 parent ba9a847 commit df9b917

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cstrike/addons/amxmodx/scripting/map_manager_online_checker.sma

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ public plugin_init() {
3737

3838
public plugin_cfg() {
3939
mapm_get_prefix(g_sPrefix, charsmax(g_sPrefix));
40-
get_mapname(g_CurrentMap[Map], charsmax(g_CurrentMap[Map]));
4140
}
4241

4342
public task_check_online() {
@@ -63,6 +62,7 @@ public task_check_online() {
6362
}
6463

6564
public mapm_maplist_loaded(Array: maplist, const nextmap[]) {
65+
get_mapname(g_CurrentMap[Map], charsmax(g_CurrentMap[Map]));
6666
remove_task(TASK_CHECK_ONLINE);
6767

6868
new idx = mapm_get_map_index(g_CurrentMap[Map]);

0 commit comments

Comments
 (0)