summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-31 17:45:26 +0200
committeraap <aap@papnet.eu>2020-05-31 17:45:26 +0200
commitbae3a3e72f6b22b72155d377d38725cdbdff688c (patch)
tree09d9b2e732771ec71c9fe920a759930d50490eea /src/core
parentfix (diff)
downloadre3-bae3a3e72f6b22b72155d377d38725cdbdff688c.tar
re3-bae3a3e72f6b22b72155d377d38725cdbdff688c.tar.gz
re3-bae3a3e72f6b22b72155d377d38725cdbdff688c.tar.bz2
re3-bae3a3e72f6b22b72155d377d38725cdbdff688c.tar.lz
re3-bae3a3e72f6b22b72155d377d38725cdbdff688c.tar.xz
re3-bae3a3e72f6b22b72155d377d38725cdbdff688c.tar.zst
re3-bae3a3e72f6b22b72155d377d38725cdbdff688c.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/Cam.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/Cam.cpp b/src/core/Cam.cpp
index 6347e111..60145cd0 100644
--- a/src/core/Cam.cpp
+++ b/src/core/Cam.cpp
@@ -3792,7 +3792,7 @@ CCam::Process_Debug(const CVector&, float, float, float)
if(FindPlayerVehicle())
FindPlayerVehicle()->Teleport(Source);
else
- CWorld::Players[CWorld::PlayerInFocus].m_pPed->SetPosition(Source);
+ CWorld::Players[CWorld::PlayerInFocus].m_pPed->SetPosition(Source);
}
// stay inside sectors
@@ -3859,8 +3859,7 @@ CCam::Process_Debug(const CVector&, float, float, float)
if(FindPlayerVehicle())
FindPlayerVehicle()->Teleport(Source);
else
- CWorld::Players[CWorld::PlayerInFocus].m_pPed->GetPosition() = Source;
-
+ CWorld::Players[CWorld::PlayerInFocus].m_pPed->SetPosition(Source);
}
// stay inside sectors