diff --git a/distribution/changelog.txt b/distribution/changelog.txt index aa56667a41..1e4a86108f 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -26,6 +26,7 @@ - Fix: [#19901] Random shop colours never assigning last colour. - Fix: [#19924] Destructible cheat does not allow partial ride modification. - Fix: [#19950] Mine train block brake supports drawn incorrectly. +- Fix: [#19987] [Plugin] ‘SetCheatAction’ has wrong ID in plugin API. 0.4.4 (2023-03-28) ------------------------------------------------------------------------ diff --git a/src/openrct2/scripting/ScriptEngine.cpp b/src/openrct2/scripting/ScriptEngine.cpp index 02eae57bc3..5808f5f012 100644 --- a/src/openrct2/scripting/ScriptEngine.cpp +++ b/src/openrct2/scripting/ScriptEngine.cpp @@ -1347,7 +1347,7 @@ const static EnumMap ActionNameToType = { { "ridesetstatus", GameCommand::SetRideStatus }, { "ridesetvehicle", GameCommand::SetRideVehicles }, { "scenariosetsetting", GameCommand::EditScenarioOptions }, - { "setcheat", GameCommand::Cheat }, + { "cheatset", GameCommand::Cheat }, { "signsetname", GameCommand::SetSignName }, { "signsetstyle", GameCommand::SetSignStyle }, { "smallsceneryplace", GameCommand::PlaceScenery }, diff --git a/src/openrct2/scripting/ScriptEngine.h b/src/openrct2/scripting/ScriptEngine.h index ca3b24bed2..9778dea40d 100644 --- a/src/openrct2/scripting/ScriptEngine.h +++ b/src/openrct2/scripting/ScriptEngine.h @@ -47,7 +47,7 @@ namespace OpenRCT2 namespace OpenRCT2::Scripting { - static constexpr int32_t OPENRCT2_PLUGIN_API_VERSION = 73; + static constexpr int32_t OPENRCT2_PLUGIN_API_VERSION = 74; // Versions marking breaking changes. static constexpr int32_t API_VERSION_33_PEEP_DEPRECATION = 33;