Revert "coa: sanitize debuff icon path before SetTexture"

This reverts commit 8ac1651db0.
This commit is contained in:
2026-05-20 10:13:38 +02:00
parent 8ac1651db0
commit c6e168dfe0
2 changed files with 2 additions and 17 deletions
+1 -16
View File
@@ -272,23 +272,8 @@ function LiveList.prototype:SetDebuff(UnitID, Debuff, IsCharmed) -- {{{
-- Set the graphical elements to the right values -- Set the graphical elements to the right values
-- Icon -- Icon
-- CoA: Ascension sometimes ships auras whose icon path is missing/invalid on
-- the local client; passing those into SetTexture has crashed the engine
-- (#132 ACCESS_VIOLATION, fault inside Ascension.exe texture loader).
-- Fall back to the question-mark icon and record the offender once so it
-- shows up in Logs/Trace.txt.
if self.PrevDebuffTexture ~= Debuff.Texture then if self.PrevDebuffTexture ~= Debuff.Texture then
local tex = Debuff.Texture; self.IconTexture:SetTexture(Debuff.Texture);
if type(tex) ~= "string" or tex == "" then
if not D.coa_LoggedBadTextures then D.coa_LoggedBadTextures = {}; end
local key = tostring(tex);
if not D.coa_LoggedBadTextures[key] then
D.coa_LoggedBadTextures[key] = true;
D:AddDebugText("CoA: bad debuff icon, falling back. Name=", Debuff.Name, "Type=", Debuff.TypeName, "raw=", tex);
end
tex = "Interface\\Icons\\INV_Misc_QuestionMark";
end
self.IconTexture:SetTexture(tex);
self.PrevDebuffTexture = Debuff.Texture; self.PrevDebuffTexture = Debuff.Texture;
end end
+1 -1
View File
@@ -18,7 +18,7 @@
## SavedVariables: DecursiveDB ## SavedVariables: DecursiveDB
## Version: Asc-1.1.3-coa (orig 2.5.1-6-gd3885c5) ## Version: Asc-1.1.2-coa (orig 2.5.1-6-gd3885c5)
## Author: Archarodim ## Author: Archarodim
## X-License: All Rights Reserved ## X-License: All Rights Reserved