1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

- Fixed bug when the type id of the hero placeholder is the same as a already placed hero or prisoned hero

This commit is contained in:
beegee1
2013-12-30 15:34:28 +00:00
parent 51e6961d08
commit 9d0387140f
2 changed files with 66 additions and 11 deletions

View File

@@ -498,6 +498,7 @@ private:
// ---- misc helpers -----
CGHeroInstance * getUsedHero(HeroTypeID hid) const;
bool isUsedHero(HeroTypeID hid) const; //looks in heroes and prisons
std::set<HeroTypeID> getUnusedAllowedHeroes(bool alsoIncludeNotAllowed = false) const;
std::pair<Obj,int> pickObject(CGObjectInstance *obj); //chooses type of object to be randomized, returns <type, subtype>