From 663e45f24d69a6ae0f4a38e6cc523cf40936d28c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Wed, 15 Feb 2017 21:37:29 +0100 Subject: [PATCH] Limit tile inspector coord update to valid actions only --- src/openrct2/world/map.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/openrct2/world/map.c b/src/openrct2/world/map.c index 6b7c0eb66c..7c23121765 100644 --- a/src/openrct2/world/map.c +++ b/src/openrct2/world/map.c @@ -5789,7 +5789,10 @@ void game_command_modify_tile(sint32* eax, sint32* ebx, sint32* ecx, sint32* edx break; } - if (flags & GAME_COMMAND_FLAG_APPLY && gGameCommandNestLevel == 1 && !(flags & GAME_COMMAND_FLAG_GHOST)) + if (flags & GAME_COMMAND_FLAG_APPLY && + gGameCommandNestLevel == 1 && + !(flags & GAME_COMMAND_FLAG_GHOST) && + *ebx != MONEY32_UNDEFINED) { rct_xyz16 coord; coord.x = (x << 5) + 16;