From 4722720f4b4dca7f9259773b945063cf67461338 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 19 Jun 2019 20:35:41 +0200 Subject: [PATCH] - fixed incorrect implementation of "episode = clear" in UMAPINFO. --- src/gamedata/umapinfo.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/gamedata/umapinfo.cpp b/src/gamedata/umapinfo.cpp index a49a2ddf9..eadfa6b00 100644 --- a/src/gamedata/umapinfo.cpp +++ b/src/gamedata/umapinfo.cpp @@ -216,15 +216,7 @@ static int ParseStandardProperty(FScanner &scanner, UMapEntry *mape) if (Episode.IsEmpty()) return 0; if (Episode.Compare("-") == 0) { - // clear the given episode - for (unsigned i = 0; i < AllEpisodes.Size(); i++) - { - if (AllEpisodes[i].mEpisodeMap.CompareNoCase(mape->MapName) == 0) - { - AllEpisodes.Delete(i); - break; - } - } + AllEpisodes.Clear(); } else {