mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +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
|
||||
|
Reference in New Issue
Block a user