- fixed incorrect implementation of "episode = clear" in UMAPINFO.

This commit is contained in:
Christoph Oelckers 2019-06-19 20:35:41 +02:00 committed by drfrag
parent a334d08a7b
commit 300f4adea8

View file

@ -219,15 +219,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
{