summaryrefslogtreecommitdiff
path: root/src/peds
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-19 01:20:14 +0300
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-19 01:20:14 +0300
commitbcc3a8b6c76ef5851af350ef4d839ef44d473f56 (patch)
treeff7040b0e5c84a00602eb44f9538999193a0e34b /src/peds
parent4c133a95bd96033a3782af56b86089d7fcb86a79 (diff)
missing ifded
Diffstat (limited to 'src/peds')
-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);