mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-30 23:18:08 +02:00
Fixed #1900
This commit is contained in:
parent
c832eab172
commit
95e442898e
@ -1512,6 +1512,11 @@ void VCAI::validateVisitableObjs()
|
||||
errorMsg = " shouldn't be on the visitable objects list!";
|
||||
erase_if(visitableObjs, shouldBeErased);
|
||||
|
||||
//FIXME: how comes our own heroes become inaccessible?
|
||||
erase_if(reservedHeroesMap, [](std::pair<HeroPtr, std::set<const CGObjectInstance *>> hp) -> bool
|
||||
{
|
||||
return !hp.first.get(true);
|
||||
});
|
||||
for(auto &p : reservedHeroesMap)
|
||||
{
|
||||
errorMsg = " shouldn't be on list for hero " + p.first->name + "!";
|
||||
|
Loading…
Reference in New Issue
Block a user