Update Utils.lua

Corrected self to BASE
This commit is contained in:
Applevangelist 2021-08-04 11:07:47 +02:00 committed by GitHub
parent 6b36421bce
commit 2201b2adda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1579,7 +1579,7 @@ function UTILS.IsLoadingDoorOpen( unit_name )
local type_name = unit:getTypeName() local type_name = unit:getTypeName()
if type_name == "Mi-8MT" and unit:getDrawArgumentValue(38) == 1 or unit:getDrawArgumentValue(86) == 1 or unit:getDrawArgumentValue(250) == 1 then if type_name == "Mi-8MT" and unit:getDrawArgumentValue(38) == 1 or unit:getDrawArgumentValue(86) == 1 or unit:getDrawArgumentValue(250) == 1 then
self:T(unit_name .. " Cargo doors are open or cargo door not present") BASE:T(unit_name .. " Cargo doors are open or cargo door not present")
ret_val = true ret_val = true
end end