Skip to content

Commit

Permalink
Fixed #1900
Browse files Browse the repository at this point in the history
  • Loading branch information
DjWarmonger authored and DjWarmonger committed Oct 1, 2014
1 parent c832eab commit 95e4428
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions AI/VCAI/VCAI.cpp
Expand Up @@ -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 + "!";
Expand Down

0 comments on commit 95e4428

Please sign in to comment.