1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 10:53:51 +00:00

Issue #314: fix to potion use function (was mixing up potion with potion user)

This commit is contained in:
Marc Zinnschlag 2012-07-13 15:51:57 +02:00
parent 782d417d5b
commit 573d7e7e45

View file

@ -11,6 +11,7 @@
#include "../mwworld/actionapply.hpp" #include "../mwworld/actionapply.hpp"
#include "../mwworld/cellstore.hpp" #include "../mwworld/cellstore.hpp"
#include "../mwworld/physicssystem.hpp" #include "../mwworld/physicssystem.hpp"
#include "../mwworld/player.hpp"
#include "../mwgui/window_manager.hpp" #include "../mwgui/window_manager.hpp"
#include "../mwgui/tooltips.hpp" #include "../mwgui/tooltips.hpp"
@ -153,7 +154,9 @@ namespace MWClass
ptr.getRefData().setCount (ptr.getRefData().getCount()-1); ptr.getRefData().setCount (ptr.getRefData().getCount()-1);
MWWorld::Ptr actor = MWBase::Environment::get().getWorld()->getPlayer().getPlayer();
return boost::shared_ptr<MWWorld::Action> ( return boost::shared_ptr<MWWorld::Action> (
new MWWorld::ActionApply (ptr, ref->base->mId, ptr)); new MWWorld::ActionApply (actor, ref->base->mId, actor));
} }
} }