aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
Diffstat (limited to 'simon')
-rw-r--r--simon/simon.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp
index add8f42bb5..ce05f73b66 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -427,6 +427,9 @@ byte *SimonState::readSingleOpcode(FILE *in, byte *ptr) {
i = 0;
string_ptr = table[*ptr++];
+ if (!string_ptr)
+ error("Unable to locate opcode table. Perhaps you are using the wrong game target?");
+
for(;;) {
if (string_ptr[i] == ' ')
return ptr;