diff --git a/Moose Development/Moose/Wrapper/Unit.lua b/Moose Development/Moose/Wrapper/Unit.lua index 1eea61355..655db0e6a 100644 --- a/Moose Development/Moose/Wrapper/Unit.lua +++ b/Moose Development/Moose/Wrapper/Unit.lua @@ -189,7 +189,7 @@ function UNIT:GetAltitude(FromGround) if DCSUnit then local altitude = 0 - local point = DCSUnit.getPoint() --DCS#Vec3 + local point = DCSUnit:getPoint() --DCS#Vec3 altitude = point.y if FromGround then local land = land.getHeight( { x = point.x, y = point.z } ) or 0