summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-09-29 22:00:50 +0200
committerGitHub <noreply@github.com>2020-09-29 22:00:50 +0200
commitf9dc00a458684ef88e733f5d0245b5e827de82c1 (patch)
tree5a9d57bca1c005b9bbd9db14e582b13ea3ebe77c /src/core
parentMerge pull request #727 from erorcun/miami (diff)
parentnow fixed properly (diff)
downloadre3-f9dc00a458684ef88e733f5d0245b5e827de82c1.tar
re3-f9dc00a458684ef88e733f5d0245b5e827de82c1.tar.gz
re3-f9dc00a458684ef88e733f5d0245b5e827de82c1.tar.bz2
re3-f9dc00a458684ef88e733f5d0245b5e827de82c1.tar.lz
re3-f9dc00a458684ef88e733f5d0245b5e827de82c1.tar.xz
re3-f9dc00a458684ef88e733f5d0245b5e827de82c1.tar.zst
re3-f9dc00a458684ef88e733f5d0245b5e827de82c1.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/EventList.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/EventList.cpp b/src/core/EventList.cpp
index da0a5967..7eb1e186 100644
--- a/src/core/EventList.cpp
+++ b/src/core/EventList.cpp
@@ -230,7 +230,11 @@ CEventList::ReportCrimeForEvent(eEventType type, size_t crimeId, bool copsDontCa
if(crime == CRIME_NONE)
return;
+#ifdef FIX_BUGS
+ CVector playerPedCoors = FindPlayerCoors();
+#else
CVector playerPedCoors = FindPlayerPed()->GetPosition();
+#endif
CVector playerCoors = FindPlayerCoors();
if(CWanted::WorkOutPolicePresence(playerCoors, 14.0f) != 0 ||