From e34bfce2c26602550f3be579dd6c83fbed77b4e8 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Mon, 15 Apr 2013 21:05:44 +0200 Subject: SCI: Remove useless checks --- engines/sci/console.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'engines/sci') diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index cd5dea3ce2..53b561f8c7 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -2350,8 +2350,7 @@ bool Console::cmdVMVarlist(int argc, const char **argv) { for (int i = 0; i < 4; i++) { DebugPrintf("%s vars at %04x:%04x ", varnames[i], PRINT_REG(make_reg(s->variablesSegment[i], s->variables[i] - s->variablesBase[i]))); - if (s->variablesMax) - DebugPrintf(" total %d", s->variablesMax[i]); + DebugPrintf(" total %d", s->variablesMax[i]); DebugPrintf("\n"); } @@ -2408,7 +2407,7 @@ bool Console::cmdVMVars(int argc, const char **argv) { return true; } - if ((s->variablesMax) && (s->variablesMax[varType] <= varIndex)) { + if (s->variablesMax[varType] <= varIndex) { DebugPrintf("Maximum variable number for this type is %d (0x%x)\n", s->variablesMax[varType], s->variablesMax[varType]); return true; } -- cgit v1.2.3