Skip to content

Commit

Permalink
fix: possible error when icon.CustomTex is nil (cause unknown)
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 committed Jun 15, 2024
1 parent ca7eae6 commit 53e6a4e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ end)
-- varType: item
-----------------------
local function UpdateTexture(icon)
local CustomTex = icon.CustomTex:trim()
local CustomTex = icon.CustomTex and icon.CustomTex:trim() or ""
icon.CustomTex_OverrideTex = TMW.COMMON.Textures:EvaluateTexturePath(CustomTex, UpdateTexture, icon)

-- setting it nil causes the original data processor and the hook to be ran,
Expand Down

0 comments on commit 53e6a4e

Please sign in to comment.