summaryrefslogtreecommitdiffstats
path: root/src/rw
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-16 13:02:13 +0200
committeraap <aap@papnet.eu>2020-05-16 13:07:08 +0200
commit793a6a6d7e5c5db61420f367e2e4c8d7567ba06d (patch)
treebf575db8d7a162fa0e0a476731b0dd54c10be7b0 /src/rw
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
downloadre3-793a6a6d7e5c5db61420f367e2e4c8d7567ba06d.tar
re3-793a6a6d7e5c5db61420f367e2e4c8d7567ba06d.tar.gz
re3-793a6a6d7e5c5db61420f367e2e4c8d7567ba06d.tar.bz2
re3-793a6a6d7e5c5db61420f367e2e4c8d7567ba06d.tar.lz
re3-793a6a6d7e5c5db61420f367e2e4c8d7567ba06d.tar.xz
re3-793a6a6d7e5c5db61420f367e2e4c8d7567ba06d.tar.zst
re3-793a6a6d7e5c5db61420f367e2e4c8d7567ba06d.zip
Diffstat (limited to 'src/rw')
-rw-r--r--src/rw/VisibilityPlugins.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rw/VisibilityPlugins.cpp b/src/rw/VisibilityPlugins.cpp
index 3b68c981..cff1ff16 100644
--- a/src/rw/VisibilityPlugins.cpp
+++ b/src/rw/VisibilityPlugins.cpp
@@ -139,7 +139,7 @@ static float PitchToCamera;
void
CVisibilityPlugins::SetupVehicleVariables(RpClump *vehicle)
{
- if (vehicle->object.type != rpCLUMP)
+ if (RwObjectGetType((RwObject*)vehicle) != rpCLUMP)
return;
DistToCameraSq = GetDistanceSquaredFromCamera(RpClumpGetFrame(vehicle));
RwV3d distToCam;