DECALDEF parser: fixed a crash when there are duplicate decal group entries in the DECALDEF files

This commit is contained in:
biwa 2020-10-23 21:04:49 +02:00
parent d92ab46838
commit 09e40d2bae

View file

@ -197,6 +197,14 @@ namespace CodeImp.DoomBuilder.ZDoom
}
// Add name of child to the list of children
if (childdecals.ContainsKey(token))
{
// TODO: report problem
// Overwrite existing decal with new one (who knows if that's the correct way do handle duplicate entries?)
childdecals[token] = null;
}
else
childdecals.Add(token, null);
// Read the probability wheight. We don't use it, though