Fix #9730: Ghost footpath not getting removed

This commit is contained in:
Matt 2019-08-06 16:29:09 +02:00
parent 2fd91fd8ef
commit 180e50b0ad
No known key found for this signature in database
GPG Key ID: 6D4C24A61C93E208
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ private:
{
bool getGhostPath = GetFlags() & GAME_COMMAND_FLAG_GHOST;
TileElement* tileElement = map_get_footpath_element(_loc.x / 32, _loc.y / 32, _loc.z / 32);
TileElement* tileElement = map_get_footpath_element(_loc.x / 32, _loc.y / 32, _loc.z / 8);
TileElement* footpathElement = nullptr;
if (tileElement != nullptr)
{