diff options
author | aap <aap@papnet.eu> | 2020-05-16 13:02:13 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-16 13:07:08 +0200 |
commit | 793a6a6d7e5c5db61420f367e2e4c8d7567ba06d (patch) | |
tree | bf575db8d7a162fa0e0a476731b0dd54c10be7b0 | |
parent | Merge remote-tracking branch 'upstream/miami' into miami (diff) | |
download | re3-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 |
-rw-r--r-- | src/rw/VisibilityPlugins.cpp | 2 |
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; |