From e5d6f474e0a2f867b8d082e2973aa78f53a39ecc Mon Sep 17 00:00:00 2001 From: MysticalOS Date: Tue, 13 Oct 2020 21:12:08 -0400 Subject: [PATCH] Fix to GetBNGetGameAccountInfo for retail, it was throwing errors beccause 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. --- WIM.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WIM.lua b/WIM.lua index b94c921..31cb430 100644 --- a/WIM.lua +++ b/WIM.lua @@ -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 "";