diff --git a/code/ryzom/server/src/ai_service/ai_mgr_fauna.cpp b/code/ryzom/server/src/ai_service/ai_mgr_fauna.cpp index 68312d6ca..7122de9f3 100644 --- a/code/ryzom/server/src/ai_service/ai_mgr_fauna.cpp +++ b/code/ryzom/server/src/ai_service/ai_mgr_fauna.cpp @@ -110,7 +110,7 @@ CAliasTreeOwner* CMgrFauna::createChild(IAliasCont* cont, CAIAliasDescriptionNod NLMISC::splitString(tail, "|", sFlags); FOREACHC(it, vector, sFlags){ TAStarFlag tmpflag = RYAI_MAP_CRUNCH::toAStarFlag(*it); - if( (tmpflag == TAStarFlag::Nothing) && + if( (tmpflag == Nothing) && it->compare("nothing")){ // this is not a valid AStarFlags => Let's preserve the default way the fauna is handled bAstarFlags = 0; break;