summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-19 00:20:14 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-19 00:20:14 +0200
commitbcc3a8b6c76ef5851af350ef4d839ef44d473f56 (patch)
treeff7040b0e5c84a00602eb44f9538999193a0e34b /src/peds
parentMerge remote-tracking branch 'upstream/master' (diff)
downloadre3-bcc3a8b6c76ef5851af350ef4d839ef44d473f56.tar
re3-bcc3a8b6c76ef5851af350ef4d839ef44d473f56.tar.gz
re3-bcc3a8b6c76ef5851af350ef4d839ef44d473f56.tar.bz2
re3-bcc3a8b6c76ef5851af350ef4d839ef44d473f56.tar.lz
re3-bcc3a8b6c76ef5851af350ef4d839ef44d473f56.tar.xz
re3-bcc3a8b6c76ef5851af350ef4d839ef44d473f56.tar.zst
re3-bcc3a8b6c76ef5851af350ef4d839ef44d473f56.zip
Diffstat (limited to '')
-rw-r--r--src/peds/PlayerPed.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/peds/PlayerPed.cpp b/src/peds/PlayerPed.cpp
index c8e24e48..962c83df 100644
--- a/src/peds/PlayerPed.cpp
+++ b/src/peds/PlayerPed.cpp
@@ -135,7 +135,9 @@ CPlayerPed::SetupPlayerPed(int32 index)
{
CPlayerPed *player = new CPlayerPed();
CWorld::Players[index].m_pPed = player;
+#ifdef FIX_BUGS
player->RegisterReference((CEntity**)&CWorld::Players[index].m_pPed);
+#endif
player->SetOrientation(0.0f, 0.0f, 0.0f);