Skip to content

Commit

Permalink
SCI: Fix crash in vo with unloaded superclass
Browse files Browse the repository at this point in the history
(cherry picked from commit 5fc5265)
  • Loading branch information
wjp committed May 13, 2011
1 parent 7b27923 commit 47e7850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/sci/console.cpp
Expand Up @@ -3775,7 +3775,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
Expand Down

0 comments on commit 47e7850

Please sign in to comment.