mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-28 01:04:50 +01:00
Refactor sprite_index to Id
This commit is contained in:
@@ -194,7 +194,7 @@ namespace OpenRCT2::Scripting
|
||||
|
||||
if (info.SpriteType == ViewportInteractionItem::Entity && info.Entity != nullptr)
|
||||
{
|
||||
obj.Set("entityId", info.Entity->sprite_index.ToUnderlying());
|
||||
obj.Set("entityId", info.Entity->Id.ToUnderlying());
|
||||
}
|
||||
else if (info.Element != nullptr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user