summaryrefslogtreecommitdiffstats
path: root/src/modelinfo
diff options
context:
space:
mode:
authorFilip Gawin <filip.gawin@zoho.com>2020-07-25 22:04:59 +0200
committerFilip Gawin <filip.gawin@zoho.com>2020-07-25 22:04:59 +0200
commitb0414c84b9f6afb90626cf8088d7162d27b3bf4f (patch)
treefb940dc86c81467ab6911ef00a859f19b56fa39e /src/modelinfo
parentDisable cache for openal for now (diff)
downloadre3-b0414c84b9f6afb90626cf8088d7162d27b3bf4f.tar
re3-b0414c84b9f6afb90626cf8088d7162d27b3bf4f.tar.gz
re3-b0414c84b9f6afb90626cf8088d7162d27b3bf4f.tar.bz2
re3-b0414c84b9f6afb90626cf8088d7162d27b3bf4f.tar.lz
re3-b0414c84b9f6afb90626cf8088d7162d27b3bf4f.tar.xz
re3-b0414c84b9f6afb90626cf8088d7162d27b3bf4f.tar.zst
re3-b0414c84b9f6afb90626cf8088d7162d27b3bf4f.zip
Diffstat (limited to 'src/modelinfo')
-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 468ce96d..e6ba576d 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);