fixed bracket placement

This commit is contained in:
Chr1Z93 2024-01-08 15:29:38 +01:00
parent 06e81835e9
commit d931d21822

View File

@ -150,7 +150,7 @@ function removeOneUse(playerColor, hoveredObject)
local searchForType = useInfo.type local searchForType = useInfo.type
if searchForType then searchForType = searchForType:lower() end if searchForType then searchForType = searchForType:lower() end
for _, obj in ipairs(searchLib.onObject(hoveredObject), "isTileOrToken") do for _, obj in ipairs(searchLib.onObject(hoveredObject, "isTileOrToken")) do
if not obj.locked and obj.memo ~= "resourceCounter" then if not obj.locked and obj.memo ~= "resourceCounter" then
-- check for matching object, otherwise use the first hit -- check for matching object, otherwise use the first hit
if obj.memo == searchForType then if obj.memo == searchForType then