Added a check to prevent a crash with overlapping resource lump ranges

This commit is contained in:
codeimp 2009-05-14 21:36:25 +00:00
parent 08478f5e44
commit 0c5b437f64

View file

@ -305,8 +305,11 @@ namespace CodeImp.DoomBuilder.Data
// Process textures
foreach(KeyValuePair<long, ImageData> t in texturesonly)
{
textures.Add(t.Key, t.Value);
texturenames.Add(t.Value.Name);
if(!textures.ContainsKey(t.Key))
{
textures.Add(t.Key, t.Value);
texturenames.Add(t.Value.Name);
}
}
// Process flats