diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-10-07 23:21:44 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-10-07 23:26:24 +0200 |
commit | da39624f1c694dbeaefc6762fd6867715cdb77bc (patch) | |
tree | 58d34e45cba86fba08992f522e34fc182f215eb2 /src/modelinfo/VehicleModelInfo.h | |
parent | Fix build on clang (diff) | |
download | re3-da39624f1c694dbeaefc6762fd6867715cdb77bc.tar re3-da39624f1c694dbeaefc6762fd6867715cdb77bc.tar.gz re3-da39624f1c694dbeaefc6762fd6867715cdb77bc.tar.bz2 re3-da39624f1c694dbeaefc6762fd6867715cdb77bc.tar.lz re3-da39624f1c694dbeaefc6762fd6867715cdb77bc.tar.xz re3-da39624f1c694dbeaefc6762fd6867715cdb77bc.tar.zst re3-da39624f1c694dbeaefc6762fd6867715cdb77bc.zip |
Diffstat (limited to 'src/modelinfo/VehicleModelInfo.h')
-rw-r--r-- | src/modelinfo/VehicleModelInfo.h | 2 |
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); |