forked from rosebudai/OpenRCT2-Web
Fix incorrect target api when executing custom actions (#20778)
This commit is contained in:
1 parent
3b027a80f2
commit
f2c6dcbbec
2 files changed
+2
-1
No files matched your search
@@ -1,6 +1,7 @@
|
||||
0.4.7 (in development)
|
||||
------------------------------------------------------------------------
|
||||
- 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)
|
||||
------------------------------------------------------------------------
|
||||
|
||||
@@ -1069,7 +1069,7 @@ GameActions::Result ScriptEngine::QueryOrExecuteCustomGameAction(const CustomAct
|
||||
}
|
||||
|
||||
std::vector<DukValue> pluginCallArgs;
|
||||
if (GetTargetAPIVersion() <= API_VERSION_68_CUSTOM_ACTION_ARGS)
|
||||
if (customActionInfo.Owner->GetTargetAPIVersion() <= API_VERSION_68_CUSTOM_ACTION_ARGS)
|
||||
{
|
||||
pluginCallArgs = { *dukArgs };
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user