Skip to content

Commit

Permalink
- fixed incorrect implementation of "episode = clear" in UMAPINFO.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Jun 19, 2019
1 parent ade6058 commit 4722720
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/gamedata/umapinfo.cpp
Expand Up @@ -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
{
Expand Down

0 comments on commit 4722720

Please sign in to comment.