mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 03:24:55 +02:00
fix possible walk crash
This commit is contained in:
@@ -22,7 +22,7 @@ local function onFightModeChange(self, selectedFightButton)
|
||||
else
|
||||
fightMode = FightDefensive
|
||||
end
|
||||
if g_game.getFightMode ~= fightMode then
|
||||
if g_game.getFightMode() ~= fightMode then
|
||||
g_game.setFightMode(fightMode)
|
||||
end
|
||||
end
|
||||
|
@@ -99,6 +99,7 @@ MainWindow
|
||||
anchors.top: prev.bottom
|
||||
margin-top: 10
|
||||
margin-right: 5
|
||||
image-color: #ffffff88
|
||||
|
||||
Label
|
||||
!text: tr('Name:')
|
||||
@@ -186,6 +187,7 @@ MainWindow
|
||||
anchors.left: parent.horizontalCenter
|
||||
anchors.right: parent.right
|
||||
margin-left: 5
|
||||
image-color: #ffffff88
|
||||
|
||||
Label
|
||||
id: searchLabel
|
||||
|
Reference in New Issue
Block a user