mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 03:39:55 +00:00
Issue #370: replaced custom target handling in open action with base class implementation
This commit is contained in:
parent
8c2b4f996c
commit
ea1c3fe1e4
@ -10,8 +10,8 @@
|
||||
|
||||
namespace MWWorld
|
||||
{
|
||||
ActionOpen::ActionOpen (const MWWorld::Ptr& container) : mContainer (container) {
|
||||
mContainer = container;
|
||||
ActionOpen::ActionOpen (const MWWorld::Ptr& container) : Action (false, container)
|
||||
{
|
||||
}
|
||||
|
||||
void ActionOpen::executeImp (const MWWorld::Ptr& actor)
|
||||
@ -20,6 +20,6 @@ namespace MWWorld
|
||||
return;
|
||||
|
||||
MWBase::Environment::get().getWindowManager()->pushGuiMode(MWGui::GM_Container);
|
||||
MWBase::Environment::get().getWindowManager()->getContainerWindow()->open(mContainer);
|
||||
MWBase::Environment::get().getWindowManager()->getContainerWindow()->open(getTarget());
|
||||
}
|
||||
}
|
||||
|
@ -10,8 +10,6 @@ namespace MWWorld
|
||||
{
|
||||
class ActionOpen : public Action
|
||||
{
|
||||
Ptr mContainer;
|
||||
|
||||
virtual void executeImp (const MWWorld::Ptr& actor);
|
||||
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user