From dfefb83dedc4491ace627dc204f841ef8c6d7052 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 28 Apr 2017 23:18:17 +0300 Subject: Add workaround to open npc buy shop if npc invisible. For hercules it lost npc type. --- src/gui/windows/buyselldialog.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/windows/buyselldialog.cpp b/src/gui/windows/buyselldialog.cpp index 6969b8fc0..0914dc43e 100644 --- a/src/gui/windows/buyselldialog.cpp +++ b/src/gui/windows/buyselldialog.cpp @@ -133,7 +133,10 @@ void BuySellDialog::action(const ActionEvent &event) if (mNpcId != BeingId_negOne) { const Being *const being = actorManager->findBeing(mNpcId); - npcHandler->buy(being); + if (being) + npcHandler->buy(being); + else + npcHandler->buy(mNpcId); } else { -- cgit v1.2.3-70-g09d2