mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 16:03:05 +00:00
GOB: Don't crash when the engine wasn't fully initialized on exit
This commit is contained in:
parent
2d05974b5c
commit
945115f099
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user