fix possible walk crash

This commit is contained in:
Eduardo Bart
2012-05-10 11:04:11 -03:00
parent 9abac474dd
commit 3f2071d097
4 changed files with 15 additions and 19 deletions

View File

@@ -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

View File

@@ -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