summaryrefslogtreecommitdiffstats
path: root/src/peds/CopPed.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-26 11:39:16 +0200
committerGitHub <noreply@github.com>2020-05-26 11:39:16 +0200
commit800d706935a9ef2ccd360584416a4b24d99be718 (patch)
treeea345190077017dc3f5783cbe531f193e11ec5f6 /src/peds/CopPed.cpp
parenteSurfaceType (diff)
parentPed.h include not needed (diff)
downloadre3-800d706935a9ef2ccd360584416a4b24d99be718.tar
re3-800d706935a9ef2ccd360584416a4b24d99be718.tar.gz
re3-800d706935a9ef2ccd360584416a4b24d99be718.tar.bz2
re3-800d706935a9ef2ccd360584416a4b24d99be718.tar.lz
re3-800d706935a9ef2ccd360584416a4b24d99be718.tar.xz
re3-800d706935a9ef2ccd360584416a4b24d99be718.tar.zst
re3-800d706935a9ef2ccd360584416a4b24d99be718.zip
Diffstat (limited to 'src/peds/CopPed.cpp')
-rw-r--r--src/peds/CopPed.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peds/CopPed.cpp b/src/peds/CopPed.cpp
index c24be62f..6fb858f6 100644
--- a/src/peds/CopPed.cpp
+++ b/src/peds/CopPed.cpp
@@ -257,7 +257,7 @@ CCopPed::ArrestPlayer(void)
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_ARREST_GUN, 4.0f);
CVector suspMidPos;
- suspect->m_pedIK.GetComponentPosition((RwV3d)suspMidPos, PED_MID);
+ suspect->m_pedIK.GetComponentPosition(*(RwV3d *)&suspMidPos, PED_MID);
m_fRotationDest = CGeneral::GetRadianAngleBetweenPoints(suspMidPos.x, suspMidPos.y,
GetPosition().x, GetPosition().y);