GOB: Don't crash when the engine wasn't fully initialized on exit

This commit is contained in:
Sven Hesse 2012-06-27 19:45:04 +02:00
parent 2d05974b5c
commit 945115f099

View File

@ -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))