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.
This commit is contained in:
peace-maker 2018-11-13 17:32:18 +01:00 committed by Asher Baker
parent d79c5e0dfa
commit f0aec6b0b6

View File

@ -441,7 +441,7 @@ public:
*/ */
if (strcmp(name, "default") != 0) 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 either of the last two conditions failed, try again if we can. */
if (!success && strcmp(name, "mapcyclefile") != 0) if (!success && strcmp(name, "mapcyclefile") != 0)