]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Fix a very stupid bug in the executor which prevented ADDRESS to have the same global...
authorWolfgang (Blub) Bumiller <blub@speed.at>
Mon, 12 Nov 2012 23:36:00 +0000 (00:36 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Mon, 12 Nov 2012 23:36:00 +0000 (00:36 +0100)
exec.c

diff --git a/exec.c b/exec.c
index 724ff786843d764344791b0559cc92dce39d1279..71b8eba2c1486f5ffe40f5f465362826333822b1 100644 (file)
--- 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: