Fixed a crash when the loaded resources contained a flat with the same name as an internal sprite. Fixes #1071

This commit is contained in:
biwa 2024-06-30 22:17:28 +02:00
parent de8066d14f
commit 11f864bb6e

View file

@ -1564,7 +1564,7 @@ namespace CodeImp.DoomBuilder.Data
foreach(string spritefile in files)
{
ImageData img = new FileImage(Path.GetFileNameWithoutExtension(spritefile).ToLowerInvariant(), spritefile);
img.LoadImageNow();
img.LoadImageNow(false);
img.AllowUnload = false;
name = INTERNAL_PREFIX + img.Name;
long hash = Lump.MakeLongName(name, true); //mxd