From e92b8870c04b4c6e0b00ccb8135fff20238f2503 Mon Sep 17 00:00:00 2001 From: Merathilis Date: Mon, 22 Apr 2024 15:49:57 +0200 Subject: [PATCH] Fixed some whoopsi --- ElvUI_Libraries/Core/oUF_Plugins/oUF_Swing.lua | 2 +- ElvUI_Options/Core/StyleFilters.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ElvUI_Libraries/Core/oUF_Plugins/oUF_Swing.lua b/ElvUI_Libraries/Core/oUF_Plugins/oUF_Swing.lua index 17403b043b..814a76c085 100644 --- a/ElvUI_Libraries/Core/oUF_Plugins/oUF_Swing.lua +++ b/ElvUI_Libraries/Core/oUF_Plugins/oUF_Swing.lua @@ -45,7 +45,7 @@ local CreateFrame = CreateFrame local GetTime = GetTime local UnitGUID = UnitGUID -local GetSpellInfo = C_Spell.GetSpellInfo or GetSpellInfo +local GetSpellInfo = (C_Spell and C_Spell.GetSpellInfo) or GetSpellInfo local UnitCastingInfo = UnitCastingInfo local UnitRangedDamage = UnitRangedDamage local UnitAttackSpeed = UnitAttackSpeed diff --git a/ElvUI_Options/Core/StyleFilters.lua b/ElvUI_Options/Core/StyleFilters.lua index 502eb49b0c..e9eadb130c 100644 --- a/ElvUI_Options/Core/StyleFilters.lua +++ b/ElvUI_Options/Core/StyleFilters.lua @@ -15,7 +15,7 @@ local GetDifficultyInfo = GetDifficultyInfo local GetInstanceInfo = GetInstanceInfo local GetRealZoneText = GetRealZoneText local GetSpellInfo = C_Spell and C_Spell.GetSpellInfo or GetSpellInfo -local GetSpellTexture = C_Spell and C_Spell.GetSpellTexture or GetSpellInfo +local GetSpellTexture = C_Spell and C_Spell.GetSpellTexture or GetSpellTexture local tIndexOf = tIndexOf local C_Map_GetMapInfo = C_Map.GetMapInfo