aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorSven Hesse2012-06-27 19:45:04 +0200
committerSven Hesse2012-07-30 01:24:18 +0200
commit945115f09927ff2e9e7d5197524bb929f4ba5561 (patch)
tree83873f65e040a289939fccfadf58841f93071dd8 /engines
parent2d05974b5cfef94be9e3edad02e66169a215db4c (diff)
downloadscummvm-rg350-945115f09927ff2e9e7d5197524bb929f4ba5561.tar.gz
scummvm-rg350-945115f09927ff2e9e7d5197524bb929f4ba5561.tar.bz2
scummvm-rg350-945115f09927ff2e9e7d5197524bb929f4ba5561.zip
GOB: Don't crash when the engine wasn't fully initialized on exit
Diffstat (limited to 'engines')
-rw-r--r--engines/gob/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gob/game.cpp b/engines/gob/game.cpp
index 0d1953322f..de0c3f2d5c 100644
--- a/engines/gob/game.cpp
+++ b/engines/gob/game.cpp
@@ -64,7 +64,7 @@ void Environments::clear() {
// Deleting unique variables, script and resources
for (uint i = 0; i < kEnvironmentCount; i++) {
- if (_environments[i].variables == _vm->_inter->_variables)
+ if (_vm->_inter && (_environments[i].variables == _vm->_inter->_variables))
continue;
if (!has(_environments[i].variables, i + 1))