From 24902ba328260cb496c62e236a644ebb990e3fd4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Feb 2017 01:13:14 +0300 Subject: Store interacted npc type before buy or talk and send it to buy dialog. --- src/actions/actions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/actions/actions.cpp') diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index 5deca7e95..7f1e37104 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -727,7 +727,7 @@ impHandler(buy) if (being->getType() == ActorType::Npc) { if (npcHandler) - npcHandler->buy(being->getId()); + npcHandler->buy(being); return true; } else if (being->getType() == ActorType::Player) -- cgit v1.2.3-60-g2f50