summaryrefslogtreecommitdiffstats
path: root/src/peds/PlayerPed.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-04-19 15:56:39 +0200
committerGitHub <noreply@github.com>2020-04-19 15:56:39 +0200
commit0f07a323c9a0a97429c551808a38249a6b8ad1ff (patch)
tree563add6e54b45ac77ab863815a8750afed24bb1e /src/peds/PlayerPed.cpp
parentMerge pull request #475 from erorcun/erorcun (diff)
parentmissing ifded (diff)
downloadre3-0f07a323c9a0a97429c551808a38249a6b8ad1ff.tar
re3-0f07a323c9a0a97429c551808a38249a6b8ad1ff.tar.gz
re3-0f07a323c9a0a97429c551808a38249a6b8ad1ff.tar.bz2
re3-0f07a323c9a0a97429c551808a38249a6b8ad1ff.tar.lz
re3-0f07a323c9a0a97429c551808a38249a6b8ad1ff.tar.xz
re3-0f07a323c9a0a97429c551808a38249a6b8ad1ff.tar.zst
re3-0f07a323c9a0a97429c551808a38249a6b8ad1ff.zip
Diffstat (limited to '')
-rw-r--r--src/peds/PlayerPed.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/peds/PlayerPed.cpp b/src/peds/PlayerPed.cpp
index 0a0fe6a3..962c83df 100644
--- a/src/peds/PlayerPed.cpp
+++ b/src/peds/PlayerPed.cpp
@@ -135,6 +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);