Fix: Staff patrol areas getting clobbered when hiring new staff (#9271)

Fixed incorrect indexing when resetting staff patrol areas during hiring
process.
This commit is contained in:
James Warwood authored and Aaron van Geffen committed 2019-05-18 11:43:06 +02:00
1 parent 6b232f7e53
commit d7074e65a2
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -260,9 +260,9 @@ private:
gStaffModes[staffIndex] = STAFF_MODE_WALK;
for (int32_t newStaffIndex = 0; newStaffIndex < STAFF_PATROL_AREA_SIZE; newStaffIndex++)
for (int32_t i = 0; i < STAFF_PATROL_AREA_SIZE; i++)
{
gStaffPatrolAreas[newStaffIndex * STAFF_PATROL_AREA_SIZE + newStaffId] = 0;
gStaffPatrolAreas[staffIndex * STAFF_PATROL_AREA_SIZE + i] = 0;
}
res->peepSriteIndex = newPeep->sprite_index;
+1 -1
View File
@@ -33,7 +33,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 "31"
#define NETWORK_STREAM_VERSION "32"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
static Peep* _pickup_peep = nullptr;