mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-15 20:03:15 +02:00
Tribool - I used it wrong.
This commit is contained in:
@@ -549,7 +549,7 @@ void CAdvMapInt::updateSleepWake(const CGHeroInstance *h)
|
|||||||
void CAdvMapInt::updateMoveHero(const CGHeroInstance *h, tribool hasPath)
|
void CAdvMapInt::updateMoveHero(const CGHeroInstance *h, tribool hasPath)
|
||||||
{
|
{
|
||||||
//default value is for everywhere but CPlayerInterface::moveHero, because paths are not updated from there immediately
|
//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;
|
hasPath = LOCPLINT->paths[h].nodes.size() ? true : false;
|
||||||
if (!h)
|
if (!h)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user