aboutsummaryrefslogtreecommitdiff
path: root/engines/simon/debug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/simon/debug.cpp')
-rw-r--r--engines/simon/debug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/simon/debug.cpp b/engines/simon/debug.cpp
index fa4fe87386..260bd78158 100644
--- a/engines/simon/debug.cpp
+++ b/engines/simon/debug.cpp
@@ -185,7 +185,7 @@ void SimonEngine::dump_video_script(const byte *src, bool one_opcode_only) {
opcode = *src++;
}
- if (opcode >= NUM_VIDEO_OP_CODES) {
+ if (opcode >= _numVideoOpcodes) {
error("Invalid opcode %x\n", opcode);
return;
}