diff --git a/libs/gamecode/pr_exec.c b/libs/gamecode/pr_exec.c index 7140f520b..09d8b9fc8 100644 --- a/libs/gamecode/pr_exec.c +++ b/libs/gamecode/pr_exec.c @@ -1225,7 +1225,7 @@ PR_ExecuteProgram (progs_t *pr, func_t fnum) if (pr_boundscheck->int_val) { check_stack_pointer (pr, stack, 1); } - stk->integer_var = OPA.integer_var; + OPA.integer_var = stk->integer_var; *pr->globals.stack = stack + 1; } break; @@ -1236,7 +1236,7 @@ PR_ExecuteProgram (progs_t *pr, func_t fnum) if (pr_boundscheck->int_val) { check_stack_pointer (pr, stack, 3); } - memcpy (stk, &OPA, 3 * sizeof (OPC)); + memcpy (&OPA, stk, 3 * sizeof (OPC)); *pr->globals.stack = stack + 3; } break; @@ -1247,7 +1247,7 @@ PR_ExecuteProgram (progs_t *pr, func_t fnum) if (pr_boundscheck->int_val) { check_stack_pointer (pr, stack, 4); } - memcpy (stk, &OPA, 4 * sizeof (OPC)); + memcpy (&OPA, stk, 4 * sizeof (OPC)); *pr->globals.stack = stack + 4; } break; @@ -1271,7 +1271,7 @@ PR_ExecuteProgram (progs_t *pr, func_t fnum) PR_BoundsCheck (pr, pointer, ev_integer); } - stk->integer_var = ptr->integer_var; + ptr->integer_var = stk->integer_var; *pr->globals.stack = stack + 1; } break; @@ -1288,7 +1288,7 @@ PR_ExecuteProgram (progs_t *pr, func_t fnum) PR_BoundsCheck (pr, pointer, ev_integer); } - VectorCopy (&ptr->vector_var, &stk->vector_var); + VectorCopy (&stk->vector_var, &ptr->vector_var); *pr->globals.stack = stack + 3; } break; @@ -1305,7 +1305,7 @@ PR_ExecuteProgram (progs_t *pr, func_t fnum) PR_BoundsCheck (pr, pointer, ev_quat); } - QuatCopy (&ptr->quat_var, &stk->quat_var); + QuatCopy (&stk->quat_var, &ptr->quat_var); *pr->globals.stack = stack + 4; } break; @@ -1329,7 +1329,7 @@ PR_ExecuteProgram (progs_t *pr, func_t fnum) PR_BoundsCheck (pr, pointer, ev_integer); } - stk->integer_var = ptr->integer_var; + ptr->integer_var = stk->integer_var; *pr->globals.stack = stack + 1; } break; @@ -1346,7 +1346,7 @@ PR_ExecuteProgram (progs_t *pr, func_t fnum) PR_BoundsCheck (pr, pointer, ev_integer); } - VectorCopy (&ptr->vector_var, &stk->vector_var); + VectorCopy (&stk->vector_var, &ptr->vector_var); *pr->globals.stack = stack + 3; } break; @@ -1363,7 +1363,7 @@ PR_ExecuteProgram (progs_t *pr, func_t fnum) PR_BoundsCheck (pr, pointer, ev_quat); } - QuatCopy (&ptr->quat_var, &stk->quat_var); + QuatCopy (&stk->quat_var, &ptr->quat_var); *pr->globals.stack = stack + 4; } break;