equip-compare: dont create this table every function call

This commit is contained in:
Spit
2025-04-07 12:04:42 +02:00
committed by Shagu
parent 1e331790cb
commit 0dca3ad512
+2 -1
View File
@@ -10,9 +10,10 @@ local module = ShaguTweaks:register({
})
module.enable = function(self)
local sides = { "Left", "Right" }
local function AddHeader(tooltip)
local name = tooltip:GetName()
local sides = { "Left", "Right" }
-- shift all entries one line down
for i=tooltip:NumLines(), 1, -1 do