Skip to content

Commit fdb412c

Browse files
committed
Fix: "Remove all loadouts from this character from the list" now properly removes only the specified character's loadouts, instead of all alt loadouts
1 parent 126eb63 commit fdb412c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/SideBarMixin.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -877,8 +877,8 @@ function SideBarMixin:RemoveAllLoadoutsByOwner(owner)
877877
local dataProvider = self.DataProvider;
878878
--- @type TLM_SideBarDataProviderEntry[]
879879
local elements = dataProvider:GetCollection();
880-
for _, v in ipairs(elements) do
881-
if v.data.isBlizzardLoadout and not v.data.playerIsOwner then
880+
for _, v in pairs(elements) do
881+
if v.data.isBlizzardLoadout and owner == v.data.owner then
882882
GlobalAPI:RemoveLoadoutFromStorage(v.data.id);
883883
end
884884
end

0 commit comments

Comments
 (0)