From ddfba007917f397b03e5529fa61a890c28b51583 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 25 Oct 2004 23:08:06 +0000 Subject: [PATCH] Fixed --- dlls/engine/messages.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/engine/messages.cpp b/dlls/engine/messages.cpp index 415ffae8..cc4aca0e 100755 --- a/dlls/engine/messages.cpp +++ b/dlls/engine/messages.cpp @@ -458,11 +458,12 @@ static cell AMX_NATIVE_CALL get_msg_origin(AMX *amx, cell *params) MF_RaiseAmxError(amx, AMX_ERR_NATIVE); return 0; } - vec3_t vRet = (Vector)msgOrigin; + cell *cAddr = MF_GetAmxAddr(amx, params[1]); if (msgDest >= MSG_PVS && msgDest <= MSG_PAS_R) { + vec3_t vRet = (Vector)msgOrigin; cAddr[0] = amx_ftoc(vRet.x); cAddr[1] = amx_ftoc(vRet.y); cAddr[2] = amx_ftoc(vRet.z);