Skip to content

Commit

Permalink
Memory: Handle channel number of 0 when adding channels
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvanaar committed Jun 10, 2020
1 parent 93235db commit f35f1d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/Memory.lua
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ end
ChatFrame_RemoveAllChannels(f)
for i = 1, #db.channels, 2 do
local chan = ChatFrame_AddChannel(f, db.channels[i])
if not chan or (Prat.IsClassic and chan == 0) then
if not chan then
dbg("failed to load", db.channels[i], chan)
success = false
end
Expand Down

1 comment on commit f35f1d0

@sylvanaar
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#93

Please sign in to comment.