[Scummvm-tracker] [ScummVM :: Bugs] #14503: MM: XEEN: crash in carnage hand animation
ScummVM :: Bugs
trac at scummvm.org
Sat Jun 10 09:25:49 UTC 2023
#14503: MM: XEEN: crash in carnage hand animation
--------------------+---------------------------------------------
Reporter: yarolig | Owner: (none)
Type: defect | Status: new
Priority: high | Component: Engine: MM: Xeen
Version: | Resolution:
Keywords: | Game: Might and Magic: World of Xeen
--------------------+---------------------------------------------
Comment (by yarolig):
I see there is two ways to open a file here. One using Common::File, and
one with its subclass MM::Shared::Xeen::File.
In branch 2-7 everything was opened with Xeen::File.
For some reason "049.att" is opened with Common::File and it causes a
crash. This hack will make the game work:
{{{
void SpriteResource::load(const Common::String &filename) {
_filename = filename;
Common::File f;
if (filename != "049.att" && f.open(filename)) {
load(f);
} else {
File f2(filename);
load(f2);
}
}
}}}
I guess there is a bad "049.att" somewhere...
I have not yet figured out how to inspect archives or how to log file
access.
--
Ticket URL: <https://bugs.scummvm.org/ticket/14503#comment:5>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list