1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 14:24:33 +01:00

Remove void* obj from RideEntry

This commit is contained in:
Duncan
2024-10-16 09:50:38 +01:00
committed by GitHub
parent 9eb6ee2417
commit 5934dc6380
8 changed files with 60 additions and 65 deletions

View File

@@ -740,11 +740,9 @@ private:
if (rideObject == nullptr)
continue;
const auto* entry = static_cast<RideObjectEntry*>(rideObject->GetLegacyData());
if (entry == nullptr)
continue;
const auto& entry = rideObject->GetEntry();
for (auto rideType : entry->ride_type)
for (auto rideType : entry.ride_type)
{
if (rideType < _rideTypeToObjectMap.size())
{