diff --git a/src/engine/devcmd/cmds/GetHeightCmd.java b/src/engine/devcmd/cmds/GetHeightCmd.java index 69872f7b..6698d924 100644 --- a/src/engine/devcmd/cmds/GetHeightCmd.java +++ b/src/engine/devcmd/cmds/GetHeightCmd.java @@ -32,7 +32,7 @@ public class GetHeightCmd extends AbstractDevCmd { Zone parentZone; currentZone = ZoneManager.findSmallestZone(playerCharacter.getLoc()); - parentZone = currentZone.getParent(); + parentZone = HeightMap.getNextZoneWithTerrain(currentZone.getParent()); float currentHeight = HeightMap.getWorldHeight(currentZone, playerCharacter.getLoc()); float parentHeight = HeightMap.getWorldHeight(parentZone, playerCharacter.getLoc());