From 6c44fefcaae5c88084fd7a40e8400b0f95ca7624 Mon Sep 17 00:00:00 2001 From: Sadret Date: Fri, 23 Oct 2020 14:18:51 +0200 Subject: [PATCH] Fix #13266: Plugin API Deleting key of shared storage not working --- distribution/changelog.txt | 1 + src/openrct2/scripting/ScConfiguration.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 37fb9ea947..333ec50ee6 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -37,6 +37,7 @@ - Fix: [#13158] Cursors are drawn incorrectly in text input fields. - Fix: [#13222] Vehicle collision causes negative number of passengers (original bug). - Fix: [#13226, #7280] No error is shown when attempting to load a corrupted save. +- Fix: [#13266] Plugin API: Deleting key of sharedStorage not working. - Improved: [#13023] Made add_news_item console command last argument, assoc, optional. - Improved: [#13098] Improvements to the maze construction window user interface - Improved: [#13125] Selecting the RCT2 files now uses localised dialogs. diff --git a/src/openrct2/scripting/ScConfiguration.hpp b/src/openrct2/scripting/ScConfiguration.hpp index a9c488f7f2..a85be60753 100644 --- a/src/openrct2/scripting/ScConfiguration.hpp +++ b/src/openrct2/scripting/ScConfiguration.hpp @@ -251,7 +251,7 @@ namespace OpenRCT2::Scripting obj.push(); if (value.type() == DukValue::Type::UNDEFINED) { - duk_del_prop_string(ctx, -1, key.c_str()); + duk_del_prop_lstring(ctx, -1, n.data(), n.size()); } else {