Fixes #181 and fixes #551

This commit is contained in:
BenDol
2015-01-27 22:11:27 +13:00
parent cb7cea6809
commit 900ebbd985
2 changed files with 3 additions and 3 deletions

View File

@@ -860,7 +860,7 @@ void Game::useWith(const ItemPtr& item, const ThingPtr& toThing)
Position pos = item->getPosition();
if(!pos.isValid()) // virtual item
pos = Position(0xFFFF, 0, 0); // means that is a item in inventory
pos = Position(0xFFFF, 0, 0); // means that is an item in inventory
m_protocolGame->sendUseItemWith(pos, item->getId(), item->getStackPos(), toThing->getPosition(), toThing->getId(), toThing->getStackPos());
}