diff options
author | Lars Skovlund | 2011-05-27 17:34:43 +0200 |
---|---|---|
committer | Lars Skovlund | 2011-05-27 17:34:43 +0200 |
commit | cb990e68a170f354a7e3e2db3be05e0a2ce46a04 (patch) | |
tree | 5379c28e3c8b42bf2d75875d575503cec33cddbe /engines/sci/console.cpp | |
parent | ff62a6050aedca96e69cb284c5406833e59ca588 (diff) | |
download | scummvm-rg350-cb990e68a170f354a7e3e2db3be05e0a2ce46a04.tar.gz scummvm-rg350-cb990e68a170f354a7e3e2db3be05e0a2ce46a04.tar.bz2 scummvm-rg350-cb990e68a170f354a7e3e2db3be05e0a2ce46a04.zip |
SCI: Fix access to variables (gc_interval etc.) from the console
Diffstat (limited to 'engines/sci/console.cpp')
-rw-r--r-- | engines/sci/console.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index e6b5c3c1d4..ac87b3f6f6 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -74,6 +74,9 @@ static int parse_reg_t(EngineState *s, const char *str, reg_t *dest, bool mayBeV Console::Console(SciEngine *engine) : GUI::Debugger(), _engine(engine), _debugState(engine->_debugState) { + assert(_engine); + assert(_engine->_gamestate); + // Variables DVar_Register("sleeptime_factor", &g_debug_sleeptime_factor, DVAR_INT, 0); DVar_Register("gc_interval", &engine->_gamestate->scriptGCInterval, DVAR_INT, 0); |