From 3ed392b3928cf1076e27b9b7c1f8f5ee73af968f Mon Sep 17 00:00:00 2001 From: urnati Date: Thu, 1 Aug 2019 13:10:10 -0400 Subject: [PATCH] Updated LDBtoTitan to remove a 'leaky global' variable --- Titan/LDBToTitan.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Titan/LDBToTitan.lua b/Titan/LDBToTitan.lua index df164ab..d7a3134 100644 --- a/Titan/LDBToTitan.lua +++ b/Titan/LDBToTitan.lua @@ -515,8 +515,9 @@ function TitanLDBRefreshButton() -- TitanDebug("LDB: RefreshButton") for name, obj in ldb:DataObjectIterator() do if obj then - LDBToTitan:TitanLDBTextUpdate(_, name, "text", (obj.text or ""), obj) - LDBToTitan:TitanLDBIconUpdate(_, name, "icon", (obj.icon or iconTitanDefault), obj) + local unused = nil + LDBToTitan:TitanLDBTextUpdate(unused, name, "text", (obj.text or ""), obj) + LDBToTitan:TitanLDBIconUpdate(unused, name, "icon", (obj.icon or iconTitanDefault), obj) else -- TitanDebug("LDB: '"..name.."' no refresh") end -- 1.7.9.5