Skip to content
Snippets Groups Projects
Commit 79a507a8 authored by biwa's avatar biwa
Browse files

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

parent 0a1e40f1
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,15 @@ namespace CodeImp.DoomBuilder.ZDoom
if (!di.Parse(this))
return false;
decals.Add(decalname, di);
if(decals.ContainsKey(decalname))
{
// TODO: report problem
// Overwrite existing decal with new one (who knows if that's the correct way do handle duplicate entries?)
decals[decalname] = di;
}
else
decals.Add(decalname, di);
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment