mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 03:54:54 +02:00
Some fixes to spells/cooldowns.
* Fixed 'progress' bug for spells in the cooldown module. * Fixed a bug with GameForceFirstAutoWalkStep feature. * Moved the spells ID to its SpellInfo row. * Lower cased table functions (consistant).
This commit is contained in:
@@ -59,7 +59,7 @@ function UIComboBox:setCurrentIndex(index)
|
||||
end
|
||||
|
||||
function UIComboBox:getCurrentOption()
|
||||
if table.hasKey(self.options, self.currentIndex) then
|
||||
if table.haskey(self.options, self.currentIndex) then
|
||||
return self.options[self.currentIndex]
|
||||
end
|
||||
end
|
||||
|
@@ -216,7 +216,7 @@ end
|
||||
|
||||
function UITable:setHeaderColumnStyle(style)
|
||||
self.headerColumnBaseStyle = style
|
||||
if table.hasKey(HEADER_ID) then
|
||||
if table.haskey(HEADER_ID) then
|
||||
self.columns[HEADER_ID]:setStyle(style)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user