Skip to content
Snippets Groups Projects
Commit 7c445da5 authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@4415 51575b47-30f0-44d4-a5cc-537603b46e54
parent e4253b21
No related branches found
No related tags found
No related merge requests found
......@@ -156,7 +156,7 @@ function _M:switchTo(ui)
self:loadLog(self.log:getLog())
else
local s = nil
if _M.last_tab == ui.tab_channel and self.scroll < self.max - self.max_display + 1 then
if _M.last_tab == ui.tab_channel and self.max and self.max_display and self.scroll < self.max - self.max_display + 1 then
s = self.scroll
end
self:loadLog(self.chat:getLog(ui.tab_channel, true), s)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment