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:
parent
1d57c40740
commit
143b0983e6
@ -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++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user