diff --git a/code/qcommon/vm_interpreted.c b/code/qcommon/vm_interpreted.c index 12fcfae9..8976b6eb 100644 --- a/code/qcommon/vm_interpreted.c +++ b/code/qcommon/vm_interpreted.c @@ -852,7 +852,7 @@ nextInstruction2: opStack--; goto nextInstruction; case OP_BCOM: - opStack[-1] = ~ ((unsigned)r0); + *opStack = ~ ((unsigned)r0); goto nextInstruction; case OP_LSH: