mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-04 07:45:34 +00:00
changed take action to use the new container store interface
This commit is contained in:
parent
1d551030d1
commit
f39aa2a68d
1 changed files with 2 additions and 2 deletions
|
@ -4,6 +4,7 @@
|
||||||
#include "class.hpp"
|
#include "class.hpp"
|
||||||
#include "environment.hpp"
|
#include "environment.hpp"
|
||||||
#include "world.hpp"
|
#include "world.hpp"
|
||||||
|
#include "containerstore.hpp"
|
||||||
|
|
||||||
namespace MWWorld
|
namespace MWWorld
|
||||||
{
|
{
|
||||||
|
@ -14,8 +15,7 @@ namespace MWWorld
|
||||||
// insert into player's inventory
|
// insert into player's inventory
|
||||||
MWWorld::Ptr player = environment.mWorld->getPtr ("player", true);
|
MWWorld::Ptr player = environment.mWorld->getPtr ("player", true);
|
||||||
|
|
||||||
MWWorld::Class::get (mObject).insertIntoContainer (mObject,
|
MWWorld::Class::get (player).getContainerStore (player).add (mObject);
|
||||||
MWWorld::Class::get (player).getContainerStore (player));
|
|
||||||
|
|
||||||
// remove from world
|
// remove from world
|
||||||
environment.mWorld->deleteObject (mObject);
|
environment.mWorld->deleteObject (mObject);
|
||||||
|
|
Loading…
Reference in a new issue