mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 12:39:56 +00:00
Reset successor variable after use.
This fixes a crash in SQ3 after reloading followed by restarting. svn-id: r38918
This commit is contained in:
parent
c1fb06c162
commit
5a5c51bb48
@ -2023,6 +2023,7 @@ static EngineState *_game_run(EngineState *s, int restoring) {
|
||||
s->execution_stack_pos_changed = 0;
|
||||
run_vm(s, (successor || restoring) ? 1 : 0);
|
||||
if (s->restarting_flags & SCI_GAME_IS_RESTARTING_NOW) { // Restart was requested?
|
||||
successor = NULL;
|
||||
free(s->execution_stack);
|
||||
s->execution_stack = NULL;
|
||||
s->execution_stack_pos = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user