From c086116ef4346cb1fedff084810faf59f64eaed1 Mon Sep 17 00:00:00 2001 From: urnati Date: Sat, 13 Apr 2024 11:20:46 -0400 Subject: [PATCH] - Fix error in Ammo causing an error to display when toon has non-ammo weapon (wand) equipped --- Titan/TitanUtils.lua | 2 +- TitanAmmo/TitanClassicAmmo.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Titan/TitanUtils.lua b/Titan/TitanUtils.lua index 96a345a..0984858 100644 --- a/Titan/TitanUtils.lua +++ b/Titan/TitanUtils.lua @@ -828,7 +828,7 @@ function TitanUtils_GetColoredText(text, color) local colorCode = "|cff" .. redColorCode .. greenColorCode .. blueColorCode; res = colorCode .. text .. _G["FONT_COLOR_CODE_CLOSE"]; else - res = _G["GRAY_FONT_COLOR"] .. tostring(text) .. _G["FONT_COLOR_CODE_CLOSE"] + res = _G["GRAY_FONT_COLOR_CODE"] .. tostring(text) .. _G["FONT_COLOR_CODE_CLOSE"] end return res diff --git a/TitanAmmo/TitanClassicAmmo.lua b/TitanAmmo/TitanClassicAmmo.lua index 3386b41..fbcce88 100644 --- a/TitanAmmo/TitanClassicAmmo.lua +++ b/TitanAmmo/TitanClassicAmmo.lua @@ -305,7 +305,7 @@ function GetButtonText(id) local labelText, ammoText, ammoRichText, color; labelText = display.label - ammoText = display.text + ammoText = display.text or "-" if display.mismatch then ammoRichText = tostring(display.mismatch_text) -- 1.7.9.5