[svn r5764] Can't change stats at levelup
Posted: Tue Oct 30, 2012 7:58 am
r5764's updated levelup dialog scrollbar code breaks stat point allocation since it doesn't have a scrollbar. This patch fixes it:
Code: Select all
--- dialogs\elements\TalentTrees-old.lua 2012-10-30 00:53:15.109375000 -0700
+++ dialogs\elements\TalentTrees.lua 2012-10-30 00:53:20.156250000 -0700
@@ -319,7 +319,7 @@
end
local mz = {}
- if self.scrollbar and self.last_scroll ~= self.scrollbar.pos then self.mousezones = mz end
+ if not self.scrollbar or self.last_scroll ~= self.scrollbar.pos then self.mousezones = mz end
local dx, dy = 0, self.scrollbar and -self.scrollbar.pos or 0
local bdx, bdy = dx, dy