- (Hopefully) addressed a problem where images failed to load when opening another map in the 64 bit version

@ This is a workaround for #295.
This commit is contained in:
biwa 2019-10-13 13:47:29 +02:00
parent 4089ff10d9
commit ba6dc546ba

View file

@ -534,8 +534,11 @@ namespace CodeImp.DoomBuilder.IO
}
catch(Exception e)
{
// [ZZ] try to make a guessed reader
switch (guesstype)
// Remove last error from the stack. Workaround for https://github.com/jewalky/GZDoom-Builder-Bugfix/issues/295
ilGetError();
// [ZZ] try to make a guessed reader
switch (guesstype)
{
case ImageDataFormat.DOOMPICTURE:
// Check if data is valid for a doom picture