From 6044079528d89c4559fad2346b04e539b67ba1aa Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Tue, 13 Nov 2012 00:36:00 +0100 Subject: [PATCH] Fix a very stupid bug in the executor which prevented ADDRESS to have the same global as output as one of its inputs --- exec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/exec.c b/exec.c index 724ff78..71b8eba 100644 --- a/exec.c +++ b/exec.c @@ -1215,8 +1215,7 @@ while (1) { } ed = prog_getedict(prog, OPA->edict); - OPC->_int = ((qcint*)ed) - prog->entitydata; - OPC->_int += OPB->_int; + OPC->_int = ((qcint*)ed) - prog->entitydata + OPB->_int; break; case INSTR_STORE_F: