Skip to content

Commit

Permalink
Fix to GetBNGetGameAccountInfo for retail, it was throwing errors bec…
Browse files Browse the repository at this point in the history
…cause it's possible for gameaccount to be nil, and old logic fell back to classic code, which is bad. instead if game account is nil we generate an empty table but continue to proceed on retail path, DO NOT TAG YET, needs more testing.
  • Loading branch information
MysticalOS committed Oct 14, 2020
1 parent adc4171 commit e5d6f47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WIM.lua
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ function GetBNGetFriendInfoByID(id)
end

function GetBNGetGameAccountInfo(toonId)
local gameAccountInfo = _G.C_BattleNet and _G.C_BattleNet.GetGameAccountInfoByID(toonId)
if gameAccountInfo then
if isShadowlands then
local gameAccountInfo = _G.C_BattleNet.GetGameAccountInfoByID(toonId) or {}
local wowProjectID = gameAccountInfo.wowProjectID or 0;
local characterName = gameAccountInfo.characterName or "";
local realmName = gameAccountInfo.realmName or "";
Expand Down

0 comments on commit e5d6f47

Please sign in to comment.