mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 22:13:07 +01:00
Introduce EntityId and refactor everything
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);
|
||||
obj.Set("entityId", info.Entity->sprite_index.ToUnderlying());
|
||||
}
|
||||
else if (info.Element != nullptr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user