fix usewith, mana null

This commit is contained in:
Henrique Santiago 2012-01-20 03:45:56 -02:00
parent b17cc43fc6
commit 7fef0809cb
2 changed files with 4 additions and 1 deletions

View File

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

View File

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