aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2011-05-13 23:23:15 +0200
committerWillem Jan Palenstijn2011-05-13 23:23:15 +0200
commit5fc5265b0d777744e8ff65305ddf0cf2da043204 (patch)
tree7f0f887230aa4f5566c1151dd3afacf7e597e57b
parentc01fed7159c313680e55458efb6529d332ebc8b0 (diff)
downloadscummvm-rg350-5fc5265b0d777744e8ff65305ddf0cf2da043204.tar.gz
scummvm-rg350-5fc5265b0d777744e8ff65305ddf0cf2da043204.tar.bz2
scummvm-rg350-5fc5265b0d777744e8ff65305ddf0cf2da043204.zip
SCI: Fix crash in vo with unloaded superclass
-rw-r--r--engines/sci/console.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp
index 62dbfc75f5..5f5af195b5 100644
--- a/engines/sci/console.cpp
+++ b/engines/sci/console.cpp
@@ -3772,7 +3772,7 @@ int Console::printObject(reg_t pos) {
DebugPrintf(" -- member variables:\n");
for (i = 0; (uint)i < obj->getVarCount(); i++) {
DebugPrintf(" ");
- if (i < var_container->getVarCount()) {
+ if (var_container && i < var_container->getVarCount()) {
uint16 varSelector = var_container->getVarSelector(i);
DebugPrintf("[%03x] %s = ", varSelector, _engine->getKernel()->getSelectorName(varSelector).c_str());
} else