only fill playerdb if all values are given

This commit is contained in:
Eric Mauser
2016-05-20 09:33:35 +02:00
parent f2923d8c08
commit 3dcf5a9632
+3 -1
View File
@@ -120,7 +120,9 @@ pfUI:RegisterModule("chat", function ()
if pfLocaleClass[GetLocale()] and pfLocaleClass[GetLocale()][Class] then
Class = pfLocaleClass[GetLocale()][Class]
end
pfUI_playerDB[Name] = { class = Class, level = Level }
if Name and Level and Class and pfUI_playerDB then
pfUI_playerDB[Name] = { class = Class, level = Level }
end
end
elseif event == "RAID_ROSTER_UPDATE" or event == "PLAYER_ENTERING_WORLD" then