Permalink
Browse files

Fix typo in fallback to "default" maplists section (#923)

When lookup of a more specialized entry in the maplists.cfg failed, it wouldn't fallback to the "default" section, but just try to parse the same section again.
  • Loading branch information...
peace-maker authored and asherkin committed Nov 13, 2018
1 parent d79c5e0 commit f0aec6b0b63c616949c7cdaf9319ab439ae86b72
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/logic/smn_maplists.cpp
@@ -441,7 +441,7 @@ class MapLists : public SMGlobalClass, public ITextListener_SMC
*/
if (strcmp(name, "default") != 0)
{
success = GetMapList(&pNewArray, name, &change_serial);
success = GetMapList(&pNewArray, "default", &change_serial);
}
/* If either of the last two conditions failed, try again if we can. */
if (!success && strcmp(name, "mapcyclefile") != 0)

0 comments on commit f0aec6b

Please sign in to comment.