mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 12:22:35 +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,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
|
||||
|
|
Loading…
Reference in a new issue