1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix #21987: API cannot handle negative removal prices

This commit is contained in:
Stephan Spengler
2024-06-06 12:01:51 +02:00
committed by GitHub
parent a25daf2fc1
commit 71a8eee5c6
2 changed files with 3 additions and 2 deletions

View File

@@ -30,6 +30,7 @@
- Fix: [#13294] Map corners are cut off in some directions (original bug).
- Fix: [#14630] Non-ASCII thousands and decimal separators not processed correctly.
- Fix: [#21974] No reason specified when attempting to place benches, lamps, or bins on path with no unconnected edges (original bug).
- Fix: [#21987] [Plugin] API cannot handle negative removal prices.
- Fix: [#22008] Uninverted Lay-down roller coaster uses the wrong support type.
- Fix: [#22012] [Plugin] Images on ImgButton widgets cannot be updated.
- Fix: [#22121] Some news items in the “Recent Messages” window have the wrong text colour.

View File

@@ -864,7 +864,7 @@ namespace OpenRCT2::Scripting
return 0;
}
uint8_t price_get() const
money64 price_get() const
{
auto sceneryEntry = GetLegacyData();
if (sceneryEntry != nullptr)
@@ -874,7 +874,7 @@ namespace OpenRCT2::Scripting
return 0;
}
uint8_t removalPrice_get() const
money64 removalPrice_get() const
{
auto sceneryEntry = GetLegacyData();
if (sceneryEntry != nullptr)