From 90b92e36aa45f0e24d5f257d04853cfa30518b3b Mon Sep 17 00:00:00 2001 From: emudave Date: Sat, 12 Feb 2011 21:55:25 +0000 Subject: [PATCH] fixed a bug where the Opcode jump table was written to out of bounds --- Cyclone/OpAny.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Cyclone/OpAny.cpp b/Cyclone/OpAny.cpp index 44d2e5c..92e695e 100644 --- a/Cyclone/OpAny.cpp +++ b/Cyclone/OpAny.cpp @@ -21,7 +21,9 @@ static unsigned short CPU_CALL OpRead16(unsigned int a) void OpUse(int op,int use) { char text[64]=""; - CyJump[op]=use; + + if (op>=0) + CyJump[op]=use; if (op!=use) return; -- 2.39.2