Skip to content

Commit

Permalink
fix getters for crash particle
Browse files Browse the repository at this point in the history
  • Loading branch information
spacek531 committed May 19, 2024
1 parent 1040556 commit 0305f3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openrct2/scripting/bindings/world/ScMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ namespace OpenRCT2::Scripting
}
else if (type == "crashed_vehicle_particle")
{
for (auto sprite : EntityList<Litter>())
for (auto sprite : EntityList<VehicleCrashParticle>())
{
result.push_back(GetObjectAsDukValue(_context, std::make_shared<ScCrashedVehicleParticle>(sprite->Id)));
}
Expand Down Expand Up @@ -231,7 +231,7 @@ namespace OpenRCT2::Scripting
}
else if (type == "crashed_vehicle_particle")
{
for (auto sprite : EntityTileList<Staff>(pos))
for (auto sprite : EntityTileList<VehicleCrashParticle>(pos))
{
result.push_back(GetObjectAsDukValue(_context, std::make_shared<ScCrashedVehicleParticle>(sprite->Id)));
}
Expand Down

0 comments on commit 0305f3d

Please sign in to comment.