1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 03:40:14 +00:00

fixed a bug with dropping items on the ground

This commit is contained in:
scrawl 2012-05-15 22:54:28 +02:00
parent 5a43fe3e5f
commit 0f811edb47

View File

@ -280,7 +280,7 @@ void HUD::onWorldClicked(MyGUI::Widget* _sender)
MWBase::Environment::get().getSoundManager()->playSound (sound, 1.0, 1.0); MWBase::Environment::get().getSoundManager()->playSound (sound, 1.0, 1.0);
// remove object from the container it was coming from // remove object from the container it was coming from
object.getRefData().setCount(0); object.getRefData().setCount(object.getRefData().getCount() - mDragAndDrop->mDraggedCount);
mDragAndDrop->mDraggedFrom->notifyContentChanged(); mDragAndDrop->mDraggedFrom->notifyContentChanged();
mDragAndDrop->mIsOnDragAndDrop = false; mDragAndDrop->mIsOnDragAndDrop = false;