From 3008d568516081c0d8dd201d0e95686d8288c272 Mon Sep 17 00:00:00 2001 From: Duncan Frost Date: Tue, 19 May 2015 17:41:32 +0100 Subject: [PATCH] Fix #1098. Forgot to increment the mapElement after during loop. --- src/world/park.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/world/park.c b/src/world/park.c index 91b92bfff7..d487006ad6 100644 --- a/src/world/park.c +++ b/src/world/park.c @@ -769,7 +769,7 @@ void update_park_fences(int x, int y) fence_required = 0; break; } - } while (!map_element_is_last_for_tile(mapElement)); + } while (!map_element_is_last_for_tile(mapElement++)); if (fence_required) { // As map_is_location_in_park sets the error text