Fix ratings calculation taking 30 minutes

This commit is contained in:
Michael Steenbeek 2021-04-02 22:57:36 +02:00 committed by GitHub
parent 4d3328c7bb
commit 0e327c86e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@
// This string specifies which version of network stream current build uses.
// It is used for making sure only compatible builds get connected, even within
// single OpenRCT2 version.
#define NETWORK_STREAM_VERSION "9"
#define NETWORK_STREAM_VERSION "10"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
static Peep* _pickup_peep = nullptr;

View File

@ -157,7 +157,7 @@ static void ride_ratings_update_state_0()
ride_id_t currentRide = gRideRatingsCalcData.CurrentRide;
currentRide++;
if (currentRide == RIDE_ID_NULL)
if (currentRide >= MAX_RIDES)
{
currentRide = 0;
}