[svn r5764] Can't change stats at levelup

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
aardvark
Wyrmic
Posts: 200
Joined: Wed Aug 22, 2012 12:16 am

[svn r5764] Can't change stats at levelup

#1 Post by aardvark »

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

Post Reply