Browse Source

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

Haryaalcar 11 years ago
parent
commit
fee9f0c1a0
1 changed files with 5 additions and 0 deletions
  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);
 }