summaryrefslogtreecommitdiffstats
path: root/src/modelinfo
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-12-18 13:50:37 +0100
committeraap <aap@papnet.eu>2020-12-18 13:50:37 +0100
commit55cf1a37cbce81db5b32264cfb4ebfa0a9793017 (patch)
tree9273d77a5fdffc4bc70cf7439fedb7935da024d6 /src/modelinfo
parentlittle cleanup and synch on templates and config (diff)
parentMerge pull request #889 from aap/miami (diff)
downloadre3-55cf1a37cbce81db5b32264cfb4ebfa0a9793017.tar
re3-55cf1a37cbce81db5b32264cfb4ebfa0a9793017.tar.gz
re3-55cf1a37cbce81db5b32264cfb4ebfa0a9793017.tar.bz2
re3-55cf1a37cbce81db5b32264cfb4ebfa0a9793017.tar.lz
re3-55cf1a37cbce81db5b32264cfb4ebfa0a9793017.tar.xz
re3-55cf1a37cbce81db5b32264cfb4ebfa0a9793017.tar.zst
re3-55cf1a37cbce81db5b32264cfb4ebfa0a9793017.zip
Diffstat (limited to 'src/modelinfo')
-rw-r--r--src/modelinfo/VehicleModelInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modelinfo/VehicleModelInfo.cpp b/src/modelinfo/VehicleModelInfo.cpp
index f9caffc5..b9d6f300 100644
--- a/src/modelinfo/VehicleModelInfo.cpp
+++ b/src/modelinfo/VehicleModelInfo.cpp
@@ -549,7 +549,7 @@ CVehicleModelInfo::PreprocessHierarchy(void)
if(desc[i].flags & VEHICLE_FLAG_POS){
f = assoc.frame;
- rwvec = (RwV3d*)&m_positions[desc[i].hierId];
+ rwvec = &m_positions[desc[i].hierId];
*rwvec = *RwMatrixGetPos(RwFrameGetMatrix(f));
for(f = RwFrameGetParent(f); f; f = RwFrameGetParent(f))
RwV3dTransformPoints(rwvec, rwvec, 1, RwFrameGetMatrix(f));