Skip to content

Commit

Permalink
ZVISION: Delete the render manager after the script manager on quit
Browse files Browse the repository at this point in the history
This is necessary, as the script manager may include references to the
render manager, such as side effects in Zork: Nemesis. Fixes a crash on
engine exit when the current scene contains such effects
  • Loading branch information
bluegr committed Dec 26, 2014
1 parent eb46e83 commit fd34456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/zvision/zvision.cpp
Expand Up @@ -127,8 +127,8 @@ ZVision::~ZVision() {
delete _cursorManager;
delete _stringManager;
delete _saveManager;
delete _renderManager;
delete _scriptManager;
delete _renderManager; // should be deleted after the script manager
delete _rnd;
delete _midiManager;

Expand Down

0 comments on commit fd34456

Please sign in to comment.