diff --git a/modules/game/thing.lua b/modules/game/thing.lua index 95add742..3444a7c8 100644 --- a/modules/game/thing.lua +++ b/modules/game/thing.lua @@ -27,7 +27,7 @@ function Game.processMouseAction(menuPosition, mouseButton, autoWalk, lookThing, if not Options.classicControl then if mouseButton == MouseLeftButton and selectedThing then - Game.useWith(Game.getSelectedThing(), useThing) + Game.useWith(Game.getSelectedThing(), multiUseThing) Game.setSelectedThing(nil) restoreCursor() return true diff --git a/src/otclient/core/localplayer.cpp b/src/otclient/core/localplayer.cpp index 5d523201..ef8c4de9 100644 --- a/src/otclient/core/localplayer.cpp +++ b/src/otclient/core/localplayer.cpp @@ -33,6 +33,9 @@ LocalPlayer::LocalPlayer() m_walkLocked = false; m_lastPrewalkDone = true; m_icons = 0; + + for(int i = 0; i < Otc::LastStatistic; ++i) + m_statistics[i] = -1; // sets an invalid value to ensure lua event will be sent } void LocalPlayer::lockWalk()