From fee9f0c1a078b337bfb2ea293b13468e4e737ed5 Mon Sep 17 00:00:00 2001 From: Haryaalcar Date: Sat, 14 Jun 2014 16:52:30 +0300 Subject: [PATCH] "0001766: Disassembling artifacts in hero and hero meeting screen doesn't work." fix --- server/CQuery.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/CQuery.cpp b/server/CQuery.cpp index 0caed13b1c..e7ecb0355d 100644 --- a/server/CQuery.cpp +++ b/server/CQuery.cpp @@ -293,6 +293,11 @@ bool CGarrisonDialogQuery::blocksPack(const CPack *pack) const return !vstd::contains(ourIds, dismiss->id); } + if (auto dismiss = dynamic_cast(pack)) + { + return !vstd::contains(ourIds, dismiss->heroID); + } + return CDialogQuery::blocksPack(pack); }