瀏覽代碼

"0001766: Disassembling artifacts in hero and hero meeting screen doesn't work." fix

Haryaalcar 11 年之前
父節點
當前提交
fee9f0c1a0
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      server/CQuery.cpp

+ 5 - 0
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<const AssembleArtifacts*>(pack))
+	{
+		return !vstd::contains(ourIds, dismiss->heroID);
+	}
+
 	return CDialogQuery::blocksPack(pack);
 }