1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-15 11:46:56 +02:00

fix enum value

This commit is contained in:
Andrey Filipenkov 2022-09-22 11:22:31 +03:00
parent 1d57c40740
commit 143b0983e6

View File

@ -82,7 +82,7 @@ bool needToRecruitHero(const CGTownInstance * startupTown)
|| obj->ID == Obj::WATER_WHEEL) || obj->ID == Obj::WATER_WHEEL)
{ {
auto path = paths->getPathInfo(obj->visitablePos()); auto path = paths->getPathInfo(obj->visitablePos());
if((path->accessible == CGPathNode::BLOCKVIS || path->accessible == CGPathNode::VISIT) if((path->accessible == CGPathNode::BLOCKVIS || path->accessible == CGPathNode::VISITABLE)
&& path->reachable()) && path->reachable())
{ {
treasureSourcesCount++; treasureSourcesCount++;