소스 검색

"Next Hero" on adventure map now selects heroes who have movement points left, rather than those who don't.

OnionKnight 16 년 전
부모
커밋
1ef51b6888
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      client/CAdvmapInterface.cpp

+ 1 - 1
client/CAdvmapInterface.cpp

@@ -1444,7 +1444,7 @@ void CAdvMapInt::fnextHero()
 		i++;
 		if(i >= LOCPLINT->wanderingHeroes.size())
 			i = 0;
-	} while (LOCPLINT->wanderingHeroes[i]->movement && i!=start);
+	} while (!LOCPLINT->wanderingHeroes[i]->movement && i!=start);
 	heroList.select(i);
 }