This commit is contained in:
FlightControl
2017-05-20 22:04:44 +02:00
parent 923ea597ec
commit 2b0fcd3426
5 changed files with 40 additions and 14 deletions

View File

@@ -2226,8 +2226,8 @@ function CONTROLLABLE:IsAirPlane()
local DCSObject = self:GetDCSObject()
if DCSObject then
local Category = DCSObject:getCategory()
self:T2( Category )
local Category = DCSObject:getDesc().category
self:T( Category )
return Category == Unit.Category.AIRPLANE
end