소스 검색

Or should not be the same way as And.

Michał W. Urbańczyk 12 년 전
부모
커밋
68603245c4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/HeroBonus.h

+ 1 - 1
lib/HeroBonus.h

@@ -53,7 +53,7 @@ public:
 	CSelector Or(CSelector rhs) const
 	{
 		auto thisCopy = *this;
-		return [thisCopy, rhs](const Bonus *b) mutable { return thisCopy(b) && rhs(b); };
+		return [thisCopy, rhs](const Bonus *b) mutable { return thisCopy(b) || rhs(b); };
 	}
 
 	bool operator()(const Bonus *b) const