[Scummvm-tracker] [ScummVM :: Bugs] #12922: AGS: Assertion error in Time Gentlemen Please and Ben There Dan That
ScummVM :: Bugs
trac at scummvm.org
Sun Sep 12 08:40:06 UTC 2021
#12922: AGS: Assertion error in Time Gentlemen Please and Ben There Dan That
--------------------+--------------------------
Reporter: tag2015 | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: Engine: AGS
Version: | Resolution:
Keywords: | Game:
--------------------+--------------------------
Comment (by antoniou79):
The error message comes from CLIP() calls. It means its parameter limits
(amin and amax) are not ordered properly.
However, the real issue here seems to be that a video loop is loaded(?)
with 0 number of frames, which then, in conjunction to certain parts of
code assuming that num of frames are > 0, results to unforeseen "-1"
values. eg. in Object_SetView() (engines\ags\engine\ac\object.cpp)
(int)_G(views)[vidx].loops[loop].numFrames - 1
evaluates to -1
I don't know why the faulty loop has 0 number of frames though.
--
Ticket URL: <https://bugs.scummvm.org/ticket/12922#comment:1>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list