1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 03:53:07 +01:00

Removed magic number in staff color clamping

This commit is contained in:
Goddesen
2016-06-11 13:09:27 +02:00
parent a555038af0
commit 956828e007

View File

@@ -256,7 +256,7 @@ money32 staff_hire_new_staff_member(uint8 staff_type, uint8 flags, sint16 comman
newPeep->pathfind_goal.z = 0xFF;
newPeep->pathfind_goal.direction = 0xFF;
uint8 colour = gStaffColours[clamp(0, staff_type, STAFF_TYPE_SECURITY)];
uint8 colour = gStaffColours[clamp(STAFF_TYPE_HANDYMAN, staff_type, STAFF_TYPE_SECURITY)];
newPeep->tshirt_colour = colour;
newPeep->trousers_colour = colour;