forked from rosebudai/OpenRCT2-Web
Merge pull request #16640 from ZehMatt/refactor/entityid-16469
#16469: Introduce EntityId and refactor everything
This commit is contained in:
101 files changed
+601
-458
No files matched your search
@@ -894,9 +894,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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user