mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-20 19:39:41 +00:00
Issue #314: Playing drink sound when using a potion
This commit is contained in:
parent
8b08928dae
commit
0da3f2cb59
1 changed files with 5 additions and 1 deletions
|
@ -157,8 +157,12 @@ namespace MWClass
|
|||
|
||||
MWWorld::Ptr actor = MWBase::Environment::get().getWorld()->getPlayer().getPlayer();
|
||||
|
||||
return boost::shared_ptr<MWWorld::Action> (
|
||||
boost::shared_ptr<MWWorld::Action> action (
|
||||
new MWWorld::ActionApply (actor, ref->base->mId));
|
||||
|
||||
action->setSound ("Drink");
|
||||
|
||||
return action;
|
||||
}
|
||||
|
||||
MWWorld::Ptr
|
||||
|
|
Loading…
Reference in a new issue