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);