mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 04:12:12 +00:00
DECALDEF parser: fixed a crash when there are duplicate decal group entries in the DECALDEF files
This commit is contained in:
parent
d92ab46838
commit
09e40d2bae
1 changed files with 9 additions and 1 deletions
|
@ -197,7 +197,15 @@ namespace CodeImp.DoomBuilder.ZDoom
|
|||
}
|
||||
|
||||
// Add name of child to the list of children
|
||||
childdecals.Add(token, null);
|
||||
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
|
||||
int weight = 0;
|
||||
|
|
Loading…
Reference in a new issue