summaryrefslogtreecommitdiffstats
path: root/src/modelinfo/VehicleModelInfo.h
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-10-08 20:39:11 +0200
committerGitHub <noreply@github.com>2020-10-08 20:39:11 +0200
commitb97f86deeaa80705941de14b95d32e801cae837f (patch)
tree8c286f6992a58fc3db885a5579b0d49a22f30e68 /src/modelinfo/VehicleModelInfo.h
parentMerge pull request #755 from theR4K/miami (diff)
parentMerge branch 'miami' into miami (diff)
downloadre3-b97f86deeaa80705941de14b95d32e801cae837f.tar
re3-b97f86deeaa80705941de14b95d32e801cae837f.tar.gz
re3-b97f86deeaa80705941de14b95d32e801cae837f.tar.bz2
re3-b97f86deeaa80705941de14b95d32e801cae837f.tar.lz
re3-b97f86deeaa80705941de14b95d32e801cae837f.tar.xz
re3-b97f86deeaa80705941de14b95d32e801cae837f.tar.zst
re3-b97f86deeaa80705941de14b95d32e801cae837f.zip
Diffstat (limited to 'src/modelinfo/VehicleModelInfo.h')
-rw-r--r--src/modelinfo/VehicleModelInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modelinfo/VehicleModelInfo.h b/src/modelinfo/VehicleModelInfo.h
index d9a3f59a..d03ab9bf 100644
--- a/src/modelinfo/VehicleModelInfo.h
+++ b/src/modelinfo/VehicleModelInfo.h
@@ -137,7 +137,7 @@ public:
void SetVehicleComponentFlags(RwFrame *frame, uint32 flags);
void PreprocessHierarchy(void);
void GetWheelPosn(int32 n, CVector &pos);
- CVector GetFrontSeatPosn(void) { return m_positions[m_vehicleType == VEHICLE_TYPE_BOAT ? BOAT_POS_FRONTSEAT : CAR_POS_FRONTSEAT]; };
+ const CVector &GetFrontSeatPosn(void) { return m_vehicleType == VEHICLE_TYPE_BOAT ? m_positions[BOAT_POS_FRONTSEAT] : m_positions[CAR_POS_FRONTSEAT]; }
int32 ChooseComponent(void);
int32 ChooseSecondComponent(void);