Merge remote-tracking branch 'refs/remotes/origin/master' into FlightControl-task-cargo-transport

This commit is contained in:
FlightControl 2017-04-02 05:53:52 +02:00
commit bad2e81c56

View File

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