diff --git a/core/smn_maplists.cpp b/core/smn_maplists.cpp index bb2b38a5..864751ee 100644 --- a/core/smn_maplists.cpp +++ b/core/smn_maplists.cpp @@ -500,9 +500,16 @@ private: if (m_pMapCycleFile != NULL && strcmp(name, "mapcyclefile") == 0) { - if (strcmp(m_pMapCycleFile->GetString(), pMapList->path) != 0) + char path[PLATFORM_MAX_PATH]; + g_SourceMod.BuildPath(Path_Game, + path, + sizeof(path), + "%s", + m_pMapCycleFile ? m_pMapCycleFile->GetString() : "mapcycle.txt"); + + if (strcmp(path, pMapList->path) != 0) { - strncopy(pMapList->path, m_pMapCycleFile->GetString(), sizeof(pMapList->path)); + strncopy(pMapList->path, path, sizeof(pMapList->path)); pMapList->last_modified_time = 0; } }