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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user