mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-22 15:23:01 +01:00
Fix incorrect target api when executing custom actions (#20778)
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
0.4.7 (in development)
|
0.4.7 (in development)
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
- Fix: [#20737] Spent money in player window underflows when getting refunds.
|
- Fix: [#20737] Spent money in player window underflows when getting refunds.
|
||||||
|
- Fix: [#20778] [Plugin] Incorrect target api when executing custom actions.
|
||||||
|
|
||||||
0.4.6 (2023-09-03)
|
0.4.6 (2023-09-03)
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -1069,7 +1069,7 @@ GameActions::Result ScriptEngine::QueryOrExecuteCustomGameAction(const CustomAct
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::vector<DukValue> pluginCallArgs;
|
std::vector<DukValue> pluginCallArgs;
|
||||||
if (GetTargetAPIVersion() <= API_VERSION_68_CUSTOM_ACTION_ARGS)
|
if (customActionInfo.Owner->GetTargetAPIVersion() <= API_VERSION_68_CUSTOM_ACTION_ARGS)
|
||||||
{
|
{
|
||||||
pluginCallArgs = { *dukArgs };
|
pluginCallArgs = { *dukArgs };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user