Fix build for gcc

Invalid cast to int32_t that had been left in after refactoring months ago. Latest version of gcc flags this as the cast made this a comparison between a signed and unsigned value.
This commit is contained in:
duncanspumpkin 2019-06-20 19:27:56 +01:00
parent cc82975090
commit 65c0b0591d
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ uint8_t banner_get_closest_ride_index(int32_t x, int32_t y, int32_t z)
{ 0, -32 }, { -32, +32 }, { +32, -32 },
{ +32, +32 }, { -32, +32 }, { 0, 0 } };
for (size_t i = 0; i < (int32_t)std::size(NeighbourCheckOrder); i++)
for (size_t i = 0; i < std::size(NeighbourCheckOrder); i++)
{
ride_id_t rideIndex = banner_get_ride_index_at(x + NeighbourCheckOrder[i].x, y + NeighbourCheckOrder[i].y, z);
if (rideIndex != RIDE_ID_NULL)