diff --git a/engine/qclib/execloop.h b/engine/qclib/execloop.h index 16f600650..76d1348f0 100644 --- a/engine/qclib/execloop.h +++ b/engine/qclib/execloop.h @@ -651,7 +651,7 @@ reeval: //array/structure reading/riting. case OP_GLOBALADDRESS: - OPC->_int = (int)(&OPA->_int) + OPB->_int); + OPC->_int = (int)(&OPA->_int) + OPB->_int; break; case OP_POINTER_ADD: //pointer to 32 bit (remember to *3 for vectors) OPC->_int = OPA->_int + OPB->_int*4; diff --git a/engine/qclib/execloop16d.h b/engine/qclib/execloop16d.h index 16f600650..76d1348f0 100644 --- a/engine/qclib/execloop16d.h +++ b/engine/qclib/execloop16d.h @@ -651,7 +651,7 @@ reeval: //array/structure reading/riting. case OP_GLOBALADDRESS: - OPC->_int = (int)(&OPA->_int) + OPB->_int); + OPC->_int = (int)(&OPA->_int) + OPB->_int; break; case OP_POINTER_ADD: //pointer to 32 bit (remember to *3 for vectors) OPC->_int = OPA->_int + OPB->_int*4; diff --git a/engine/qclib/execloop32.h b/engine/qclib/execloop32.h index 16f600650..76d1348f0 100644 --- a/engine/qclib/execloop32.h +++ b/engine/qclib/execloop32.h @@ -651,7 +651,7 @@ reeval: //array/structure reading/riting. case OP_GLOBALADDRESS: - OPC->_int = (int)(&OPA->_int) + OPB->_int); + OPC->_int = (int)(&OPA->_int) + OPB->_int; break; case OP_POINTER_ADD: //pointer to 32 bit (remember to *3 for vectors) OPC->_int = OPA->_int + OPB->_int*4; diff --git a/engine/qclib/execloop32d.h b/engine/qclib/execloop32d.h index 16f600650..76d1348f0 100644 --- a/engine/qclib/execloop32d.h +++ b/engine/qclib/execloop32d.h @@ -651,7 +651,7 @@ reeval: //array/structure reading/riting. case OP_GLOBALADDRESS: - OPC->_int = (int)(&OPA->_int) + OPB->_int); + OPC->_int = (int)(&OPA->_int) + OPB->_int; break; case OP_POINTER_ADD: //pointer to 32 bit (remember to *3 for vectors) OPC->_int = OPA->_int + OPB->_int*4;