Replaced a concatenation inside a for loop with a format() call.
James D. Callahan III [03-04-11 - 07:13]
Replaced a concatenation inside a for loop with a format() call.
diff --git a/Waypoint.lua b/Waypoint.lua
index dac875f..c8ec3b3 100644
--- a/Waypoint.lua
+++ b/Waypoint.lua
@@ -496,7 +496,7 @@ function addon:AddWaypoint(recipe_id, acquire_id, location_id, npc_id)
continent = info.continent
x = info.x
y = info.y
- name = name .. " (" .. location .. ")"
+ name = ("%s (%s)"):format(name, location)
else
self:Debug("No continent/zone map match for ID %d. Location: %s.", spell_id, location)
end