From 6c8e0cc5360ec24ad4d75babac8207d6cfa1208e Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Wed, 30 Nov 2016 19:09:45 +0000 Subject: [PATCH] Fix #4838. Prevent leaving ghosts with small scenery Issue was caused by placing two ghost scenery items when using the scenery placement tool. The ghost clean up code would only remove the first ghost and leave the second ghost. Mistake caused when refactoring. Incorrect use of NOT and AND. --- src/world/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/world/map.c b/src/world/map.c index 970bc31b01..35b40a2442 100644 --- a/src/world/map.c +++ b/src/world/map.c @@ -3195,7 +3195,7 @@ void game_command_place_scenery(int* eax, int* ebx, int* ecx, int* edx, int* esi *ebx = 0; } - if (!flags & GAME_COMMAND_FLAG_APPLY) { + if (!(flags & GAME_COMMAND_FLAG_APPLY)) { return; }