1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 07:44:38 +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

@@ -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)