aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2013-04-15 21:05:44 +0200
committerWillem Jan Palenstijn2013-04-15 21:05:44 +0200
commite34bfce2c26602550f3be579dd6c83fbed77b4e8 (patch)
treebce6e96626fbf4181b432dd74b9f985e6d5223f9 /engines/sci
parentfbc1aac6a94e371e6a071d90d2938cc9985d2288 (diff)
downloadscummvm-rg350-e34bfce2c26602550f3be579dd6c83fbed77b4e8.tar.gz
scummvm-rg350-e34bfce2c26602550f3be579dd6c83fbed77b4e8.tar.bz2
scummvm-rg350-e34bfce2c26602550f3be579dd6c83fbed77b4e8.zip
SCI: Remove useless checks
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/console.cpp5
1 files changed, 2 insertions, 3 deletions
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;
}