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

Make sure shifted value is unsigned

This commit is contained in:
Michał Janiszewski
2016-09-11 21:19:16 +02:00
parent b0a8fb0a7c
commit 84dc29b929

View File

@@ -610,7 +610,7 @@ bool staff_is_patrol_area_set(int staffIndex, int x, int y)
int peepOffset = staffIndex * 128;
int offset = (x | y) >> 5;
int bitIndex = (x | y) & 0x1F;
return gStaffPatrolAreas[peepOffset + offset] & (1 << bitIndex);
return gStaffPatrolAreas[peepOffset + offset] & (((uint32)1) << bitIndex);
}
void staff_set_patrol_area(int staffIndex, int x, int y, bool value)