From 43b657730ecdc5524a9e8683c3cbc7612cd86fc5 Mon Sep 17 00:00:00 2001 From: IntelOrca Date: Wed, 22 Jul 2015 20:29:25 +0100 Subject: [PATCH] fix #1658 --- src/peep/peep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peep/peep.c b/src/peep/peep.c index 6f2c96ebe2..29a6980888 100644 --- a/src/peep/peep.c +++ b/src/peep/peep.c @@ -162,7 +162,7 @@ static uint8 peep_assess_surroundings(sint16 center_x, sint16 center_y, sint16 c if ((mapElement->properties.path.additions & 0xF) == 0) break; - scenery = g_pathBitSceneryEntries[mapElement->properties.path.additions - 1]; + scenery = g_pathBitSceneryEntries[(mapElement->properties.path.additions & 0x0F) - 1]; if (mapElement->properties.path.additions & (1 << 7)) break;