Skip to content

Commit

Permalink
Fix #7689: Deleting 0-tile maze gives a MONEY32_UNDEFINED (negative) …
Browse files Browse the repository at this point in the history
…refund
  • Loading branch information
felixpelletier authored and Gymnasiast committed Nov 11, 2018
1 parent 7582afe commit 4c5fccc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions distribution/changelog.txt
Expand Up @@ -15,6 +15,7 @@
- Change: [#8222] The climate setting has been moved from objective options to scenario options.
- Fix: [#6191] OpenRCT2 fails to run when the path has an emoji in it.
- Fix: [#7473] Disabling sound effects also disables "Disable audio on focus loss".
- Fix: [#7689] Deleting 0-tile maze gives a MONEY32_UNDEFINED (negative) refund.
- Fix: [#7828] Copied entrances and exits stay when demolishing ride.
- Fix: [#7945] Client IP address is logged as `(null)` in server logs.
- Fix: [#7952] Performance drop caused by code refactor.
Expand Down
3 changes: 1 addition & 2 deletions src/openrct2/ride/Ride.cpp
Expand Up @@ -5989,8 +5989,7 @@ int32_t ride_get_refund_price(int32_t ride_id)

if (!ride_try_get_origin_element(ride_id, &trackElement))
{
gGameCommandErrorText = STR_TRACK_TOO_LARGE_OR_TOO_MUCH_SCENERY;
return MONEY32_UNDEFINED;
return 0; // Ride has no track to refund
}

// Find the start in case it is not a complete circuit
Expand Down

0 comments on commit 4c5fccc

Please sign in to comment.