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

actorid
Marc Zinnschlag 13 years ago
parent 782d417d5b
commit 573d7e7e45

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

Loading…
Cancel
Save