mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Tribool - I used it wrong.
This commit is contained in:
parent
d30571aa4d
commit
6e1464b568
@ -549,7 +549,7 @@ void CAdvMapInt::updateSleepWake(const CGHeroInstance *h)
|
||||
void CAdvMapInt::updateMoveHero(const CGHeroInstance *h, tribool hasPath)
|
||||
{
|
||||
//default value is for everywhere but CPlayerInterface::moveHero, because paths are not updated from there immediately
|
||||
if (hasPath == tribool::indeterminate_value)
|
||||
if (hasPath == boost::indeterminate)
|
||||
hasPath = LOCPLINT->paths[h].nodes.size() ? true : false;
|
||||
if (!h)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user