Update Unit.lua (#1751)

This commit is contained in:
Applevangelist 2022-07-31 09:17:36 +02:00 committed by GitHub
parent 562a3f6208
commit 73493c3a23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,7 +188,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