diff options
author | Alyssa Milburn | 2013-04-19 00:46:11 +0200 |
---|---|---|
committer | Alyssa Milburn | 2013-04-19 00:46:11 +0200 |
commit | aa140c49823a7f332808970dcaf733b091d94f2f (patch) | |
tree | 573fabde3717c4829a79eb6a61d76f089177866d /engines/mohawk | |
parent | ba9efd5c4016fcd755544cb1b68fc1bd42dd8e5e (diff) | |
download | scummvm-rg350-aa140c49823a7f332808970dcaf733b091d94f2f.tar.gz scummvm-rg350-aa140c49823a7f332808970dcaf733b091d94f2f.tar.bz2 scummvm-rg350-aa140c49823a7f332808970dcaf733b091d94f2f.zip |
MOHAWK: Fix bug in View::setModule (thanks ST).
Diffstat (limited to 'engines/mohawk')
-rw-r--r-- | engines/mohawk/view.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mohawk/view.cpp b/engines/mohawk/view.cpp index 36e8f8466e..719c288af5 100644 --- a/engines/mohawk/view.cpp +++ b/engines/mohawk/view.cpp @@ -361,8 +361,8 @@ void View::idleView() { void View::setModule(Module *module) { if (_currentModule) { - module->shutdown(); - delete module; + _currentModule->shutdown(); + delete _currentModule; } _currentModule = NULL; |