mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-30 00:36:41 +00:00
Issue #314: fix to potion use function (was mixing up potion with potion user)
This commit is contained in:
parent
782d417d5b
commit
573d7e7e45
1 changed files with 4 additions and 1 deletions
|
@ -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…
Reference in a new issue