Maybe the removal of the Settings when a player exits kills DCS ?

This commit is contained in:
FlightControl_Master 2017-12-12 13:59:52 +01:00
parent d66b7b8c20
commit e048ea995e

View File

@ -790,7 +790,7 @@ function DATABASE:_EventOnPlayerLeaveUnit( Event )
local PlayerName = Event.IniUnit:GetPlayerName()
if self.PLAYERS[PlayerName] then
local Settings = SETTINGS:Set( PlayerName )
Settings:RemovePlayerMenu( Event.IniUnit )
--Settings:RemovePlayerMenu( Event.IniUnit )
self:DeletePlayer( Event.IniUnit, PlayerName )
end
end