Quantcast

- Alts : Fix for gold disappearing

urnati [04-28-26 - 01:48]
- Alts : Fix for gold disappearing
Filename
Titan/Titan.lua
Titan/TitanHistory.lua
TitanXP/TitanXP.lua
diff --git a/Titan/Titan.lua b/Titan/Titan.lua
index a35eeca..698b4ad 100644
--- a/Titan/Titan.lua
+++ b/Titan/Titan.lua
@@ -356,11 +356,11 @@ end

 local function SetToonLogout(toon)
 	-- New Dec 2025 Collect some toon info for profile display
-	-- Unlikely to change on reload but...
+	-- Do NOT call any API routines here!!
+	-- WoW is shutting down and the return values are usually nil or wrong...
+	--
 	local toon_info = TitanSettings.Players[toon].Info

-	toon_info.gold_toon = GetMoney()
-
 	local now = _G.time()
 	toon_info.logout = now
 	toon_info.logoutStr = TitanUtils_GetDateText(now, true)
diff --git a/Titan/TitanHistory.lua b/Titan/TitanHistory.lua
index c1298e1..24a12f0 100644
--- a/Titan/TitanHistory.lua
+++ b/Titan/TitanHistory.lua
@@ -11,9 +11,15 @@ These are in a seperate file to
 local recent_changes = {
    {
       version = "9.2.2",
-      when = "2026/04/23",
+      when = "2026/04/28",
       topics = {
          {
+            topic = "Alts",
+            lines = {
+               "Fix Gold value disappearing from tooltip on logout",
+            },
+         },
+         {
             topic = "Gold",
             lines = {
                "Fix tooltip for All Servers - special thanks to Liefwing for the code!",
diff --git a/TitanXP/TitanXP.lua b/TitanXP/TitanXP.lua
index ec340a7..0248963 100644
--- a/TitanXP/TitanXP.lua
+++ b/TitanXP/TitanXP.lua
@@ -128,7 +128,7 @@ end
 -- Override ChatFrame_DisplayTimePlayed used by RequestTimePlayed().
 -- TIME_PLAYED_MSG used to send response.
 local function RefreshPlayed()
-	TitanUtils_GetTimePlayed()
+	TitanUtils_GetTimePlayed("XP")
 end

 ---local Display the plugin on selected Titan bar; register events; start timer; and init vars