summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tree_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tree_cmd.c b/tree_cmd.c
index 79ebbed47..5fdf4e22c 100644
--- a/tree_cmd.c
+++ b/tree_cmd.c
@@ -521,7 +521,7 @@ static void TileLoop_Trees(uint tile)
if ( (_map5[tile] & 0x1C) == 4) {
_map2[tile] = 0x10;
} else if ((_map5[tile] & 0x1C) == 16) {
- _map2[tile] = (_map5[tile] << 6) | 0x20;
+ _map2[tile] = ((_map5[tile] & 3) << 6) | 0x20;
} else {
if ((_map5[tile] & 0x1F) != 3)
return;