Fix #20737: Spent money underflows when getting refunds (#20765)

This commit is contained in:
Hielke Morsink authored and GitHub committed 2023-09-07 08:19:27 +02:00
1 parent cb51d63dc8
commit 37caebdde9
6 files changed
+23 -3

No files matched your search

+11
View File
@@ -3352,6 +3352,14 @@ std::string NetworkGetPlayerPublicKeyHash(uint32_t id)
return {};
}
void NetworkIncrementPlayerNumCommands(uint32_t playerIndex)
{
auto& network = OpenRCT2::GetContext()->GetNetwork();
Guard::IndexInRange(playerIndex, network.player_list);
network.player_list[playerIndex]->IncrementNumCommands();
}
void NetworkAddPlayerMoneySpent(uint32_t index, money64 cost)
{
auto& network = OpenRCT2::GetContext()->GetNetwork();
@@ -4090,6 +4098,9 @@ std::string NetworkGetPlayerPublicKeyHash(uint32_t id)
{
return {};
}
void NetworkIncrementPlayerNumCommands(uint32_t playerIndex)
{
}
void NetworkAddPlayerMoneySpent(uint32_t index, money64 cost)
{
}