Fix a very stupid bug in the executor which prevented ADDRESS to have the same global as output as one of its inputs

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-13 00:36:00 +01:00
parent b61ae53ecd
commit 6044079528

3
exec.c
View file

@ -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: