Quantcast

Fix for tool tip error

urnati [08-08-19 - 20:28]
Fix for tool tip error
Filename
TitanClassicLootType/TitanClassicLootType.lua
diff --git a/TitanClassicLootType/TitanClassicLootType.lua b/TitanClassicLootType/TitanClassicLootType.lua
index 8c5914c..0761d5a 100644
--- a/TitanClassicLootType/TitanClassicLootType.lua
+++ b/TitanClassicLootType/TitanClassicLootType.lua
@@ -64,7 +64,10 @@ function TitanPanelLootTypeButton_GetDungeonDifficultyIDText(isRaid, withpar)
 	local diffstr = "|cffffff9a"..par1.._G["UNKNOWN"]..par2.."|r"
 	if isRaid then
 		-- raids
-		local diff = GetRaidDifficultyID()
+		local diff = nil
+		if GetRaidDifficultyID then
+			diff = GetRaidDifficultyID()
+		end
 		if not diff then return diffstr end
 		local name, groupType, isHeroic, isChallengeMode, displayHeroic, displayMythic, toggleDifficultyID = GetDifficultyInfo(diff)
 		-- remove () chars from difficulty
@@ -79,7 +82,10 @@ function TitanPanelLootTypeButton_GetDungeonDifficultyIDText(isRaid, withpar)
 		end
 	else
 		-- dungeons
-		local diff = GetDungeonDifficultyID()
+		local diff = nil
+		if GetRaidDifficultyID then
+			diff = GetRaidDifficultyID()
+		end
 		if not diff then return diffstr end
 		local name, groupType, isHeroic, isChallengeMode, displayHeroic, displayMythic, toggleDifficultyID = GetDifficultyInfo(diff)
 		-- remove () chars from difficulty