Merge pull request #9737 from ZehMatt/fix-9730

Fix #9730: Ghost footpath not getting removed
This commit is contained in:
ζeh Matt 2019-08-06 19:44:02 +02:00 committed by GitHub
commit 1ec1c38882
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)
{