This commit is contained in:
FlightControl 2017-04-01 20:58:06 +02:00
parent 72603601b1
commit 6c4c149349

View File

@ -465,7 +465,7 @@ function SET_BASE:_EventOnPlayerLeaveUnit( Event )
local PlayerCount = 0
for _, DCSUnit in pairs( GroupUnits ) do
if DCSUnit ~= Event.IniDCSUnit then
if DCSUnit:getPlayer() ~= nil then
if DCSUnit:getPlayerName() ~= nil then
PlayerCount = PlayerCount + 1
end
end