forked from teamnwah/openmw-tes3coop
Issue #370: replaced custom target handling in talk action with base class implementation
This commit is contained in:
parent
8ed8dd649a
commit
fb8aae243d
2 changed files with 2 additions and 4 deletions
|
@ -6,10 +6,10 @@
|
||||||
|
|
||||||
namespace MWWorld
|
namespace MWWorld
|
||||||
{
|
{
|
||||||
ActionTalk::ActionTalk (const Ptr& actor) : mActor (actor) {}
|
ActionTalk::ActionTalk (const Ptr& actor) : Action (false, actor) {}
|
||||||
|
|
||||||
void ActionTalk::executeImp (const Ptr& actor)
|
void ActionTalk::executeImp (const Ptr& actor)
|
||||||
{
|
{
|
||||||
MWBase::Environment::get().getDialogueManager()->startDialogue (mActor);
|
MWBase::Environment::get().getDialogueManager()->startDialogue (getTarget());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,8 +8,6 @@ namespace MWWorld
|
||||||
{
|
{
|
||||||
class ActionTalk : public Action
|
class ActionTalk : public Action
|
||||||
{
|
{
|
||||||
Ptr mActor;
|
|
||||||
|
|
||||||
virtual void executeImp (const Ptr& actor);
|
virtual void executeImp (const Ptr& actor);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in a new issue