1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00

Introduce EntityId and refactor everything

This commit is contained in:
ζeh Matt
2022-02-12 23:31:06 +02:00
parent 9322f415a9
commit d7f5003943
97 changed files with 476 additions and 388 deletions

View File

@@ -900,9 +900,9 @@ DukValue ScriptEngine::GameActionResultToDuk(const GameAction& action, const Gam
if (result.Error == GameActions::Status::Ok)
{
const auto actionResult = result.GetData<StaffHireNewActionResult>();
if (actionResult.StaffEntityId != SPRITE_INDEX_NULL)
if (!actionResult.StaffEntityId.IsNull())
{
obj.Set("peep", actionResult.StaffEntityId);
obj.Set("peep", actionResult.StaffEntityId.ToUnderlying());
}
}
}