summaryrefslogtreecommitdiffstats
path: root/src/peds/PedAI.cpp
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-01-25 14:06:53 +0100
committerGitHub <noreply@github.com>2021-01-25 14:06:53 +0100
commit9d4053419b213a37e34f39a903b1226c9a6909d1 (patch)
treee18ceeaef321e70bbd8d0f8d3aa7a9a7a4deb7ff /src/peds/PedAI.cpp
parentmodelinfo and visibility plg fixes (diff)
parentmake building with Codewarrior 7 possible (diff)
downloadre3-9d4053419b213a37e34f39a903b1226c9a6909d1.tar
re3-9d4053419b213a37e34f39a903b1226c9a6909d1.tar.gz
re3-9d4053419b213a37e34f39a903b1226c9a6909d1.tar.bz2
re3-9d4053419b213a37e34f39a903b1226c9a6909d1.tar.lz
re3-9d4053419b213a37e34f39a903b1226c9a6909d1.tar.xz
re3-9d4053419b213a37e34f39a903b1226c9a6909d1.tar.zst
re3-9d4053419b213a37e34f39a903b1226c9a6909d1.zip
Diffstat (limited to 'src/peds/PedAI.cpp')
-rw-r--r--src/peds/PedAI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peds/PedAI.cpp b/src/peds/PedAI.cpp
index 3a145c7a..9802f968 100644
--- a/src/peds/PedAI.cpp
+++ b/src/peds/PedAI.cpp
@@ -4093,7 +4093,7 @@ CPed::SetExitBoat(CVehicle *boat)
RemoveInCarAnims();
CColModel* boatCol = boat->GetColModel();
if (boat->IsUpsideDown()) {
- newPos = { 0.0f, 0.0f, boatCol->boundingBox.min.z };
+ newPos = CVector(0.0f, 0.0f, boatCol->boundingBox.min.z);
newPos = boat->GetMatrix() * newPos;
newPos.z += 1.0f;
m_vehDoor = CAR_DOOR_RF;