mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-02 16:31:01 +00:00
restAdjust should be a signed integer. Fixes crashes with SCI1 games that take absolute lofs parameters (a regression of commit #42260)
svn-id: r42297
This commit is contained in:
parent
a17333ed1b
commit
982153e0ab
@ -46,7 +46,7 @@ struct ScriptState {
|
||||
int old_pc_offset;
|
||||
StackPtr old_sp;
|
||||
ExecStack *xs;
|
||||
uint16 restadjust;
|
||||
int16 restadjust;
|
||||
reg_t *variables[4]; // global, local, temp, param, as immediate pointers
|
||||
reg_t *variables_base[4]; // Used for referencing VM ops
|
||||
SegmentId variables_seg[4]; // Same as above, contains segment IDs
|
||||
|
@ -208,7 +208,7 @@ public:
|
||||
bool _executionStackPosChanged; /**< Set to true if the execution stack position should be re-evaluated by the vm */
|
||||
|
||||
reg_t r_acc; /**< Accumulator */
|
||||
uint16 restAdjust; /**< &rest register (only used for save games) */
|
||||
int16 restAdjust; /**< &rest register (only used for save games) */
|
||||
reg_t r_prev; /**< previous comparison result */
|
||||
|
||||
SegmentId stack_segment; /**< Heap area for the stack to use */
|
||||
|
Loading…
x
Reference in New Issue
Block a user