Merge pull request #87 from FlightControl-Master/Bugfix

Bugfix
This commit is contained in:
Sven Van de Velde 2016-06-24 05:47:44 +02:00 committed by GitHub
commit 2b5140cec1

View File

@ -239,7 +239,7 @@ function DATABASE:AddPlayer( UnitName, PlayerName )
if PlayerName then
self:E( { "Add player for unit:", UnitName, PlayerName } )
self.PLAYERS[PlayerName] = UNIT:FindByName( UnitName )
self.PLAYERS[PlayerName] = self:FindUnit( UnitName )
self.PLAYERSJOINED[PlayerName] = PlayerName
end
end