summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-18 22:50:37 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-18 22:50:37 +0200
commitc4cd45d47c01d89bab28f196f03ed9cb1978005b (patch)
treeadfdb08e894945432bcfe0f84883fb3219fd2a72 /src/peds
parentChanged extraOffset value. (diff)
downloadre3-c4cd45d47c01d89bab28f196f03ed9cb1978005b.tar
re3-c4cd45d47c01d89bab28f196f03ed9cb1978005b.tar.gz
re3-c4cd45d47c01d89bab28f196f03ed9cb1978005b.tar.bz2
re3-c4cd45d47c01d89bab28f196f03ed9cb1978005b.tar.lz
re3-c4cd45d47c01d89bab28f196f03ed9cb1978005b.tar.xz
re3-c4cd45d47c01d89bab28f196f03ed9cb1978005b.tar.zst
re3-c4cd45d47c01d89bab28f196f03ed9cb1978005b.zip
Diffstat (limited to '')
-rw-r--r--src/peds/PlayerPed.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/peds/PlayerPed.cpp b/src/peds/PlayerPed.cpp
index 0a0fe6a3..c8e24e48 100644
--- a/src/peds/PlayerPed.cpp
+++ b/src/peds/PlayerPed.cpp
@@ -135,6 +135,7 @@ CPlayerPed::SetupPlayerPed(int32 index)
{
CPlayerPed *player = new CPlayerPed();
CWorld::Players[index].m_pPed = player;
+ player->RegisterReference((CEntity**)&CWorld::Players[index].m_pPed);
player->SetOrientation(0.0f, 0.0f, 0.0f);