From ee23fe34b07effcf394ca43044270af0e2ebd4af Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 17 Aug 2010 11:01:20 +0000 Subject: M4: fix warnings svn-id: r52148 --- engines/m4/ws_machine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/m4/ws_machine.cpp') diff --git a/engines/m4/ws_machine.cpp b/engines/m4/ws_machine.cpp index 985ceedb2e..cb791026c9 100644 --- a/engines/m4/ws_machine.cpp +++ b/engines/m4/ws_machine.cpp @@ -157,12 +157,12 @@ int32 Machine::execInstruction() { _code->loadInstruction(instruction); if (instruction.instr >= 64) { - if (machineConditionalsTable[instruction.instr - 64] != NULL) + if (machineConditionalsTable[instruction.instr - 64] != 0) (this->*machineConditionalsTable[instruction.instr - 64])(instruction); /* The next line is to yield on unimplemented opcodes */ else { fflush(stdout); g_system->delayMillis(5000); } } else if (instruction.instr > 0) { - if (machineCommandsTable[instruction.instr] != NULL) + if (machineCommandsTable[instruction.instr] != 0) done = !(this->*machineCommandsTable[instruction.instr])(instruction); /* The next line is to yield on unimplemented opcodes */ else { fflush(stdout); g_system->delayMillis(5000); } -- cgit v1.2.3