Issue #370: replaced custom target handling in talk action with base class implementation

This commit is contained in:
Marc Zinnschlag 2012-09-04 15:38:21 +02:00
parent 8ed8dd649a
commit fb8aae243d
2 changed files with 2 additions and 4 deletions

View file

@ -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());
} }
} }

View file

@ -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: