From 956828e007742494e76d35f6f2f6239c51fa585b Mon Sep 17 00:00:00 2001 From: Goddesen Date: Sat, 11 Jun 2016 13:09:27 +0200 Subject: [PATCH] Removed magic number in staff color clamping --- src/peep/staff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peep/staff.c b/src/peep/staff.c index 1caeeaa3b9..4355a499c7 100644 --- a/src/peep/staff.c +++ b/src/peep/staff.c @@ -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;