diff options
| author | Willem Jan Palenstijn | 2009-02-26 23:13:00 +0000 | 
|---|---|---|
| committer | Willem Jan Palenstijn | 2009-02-26 23:13:00 +0000 | 
| commit | 5a5c51bb489d9b88bc3477dfda5af533e37b19a7 (patch) | |
| tree | 7f302c0c20c8041d943e36469199786d781ec9be | |
| parent | c1fb06c162196de85150ca138663b3333bdb7cd0 (diff) | |
| download | scummvm-rg350-5a5c51bb489d9b88bc3477dfda5af533e37b19a7.tar.gz scummvm-rg350-5a5c51bb489d9b88bc3477dfda5af533e37b19a7.tar.bz2 scummvm-rg350-5a5c51bb489d9b88bc3477dfda5af533e37b19a7.zip | |
Reset successor variable after use.
This fixes a crash in SQ3 after reloading followed by restarting.
svn-id: r38918
| -rw-r--r-- | engines/sci/engine/vm.cpp | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp index 30c7b1462e..d6f1afc45d 100644 --- a/engines/sci/engine/vm.cpp +++ b/engines/sci/engine/vm.cpp @@ -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; | 
