Browse Source

Or should not be the same way as And.

Michał W. Urbańczyk 12 years ago
parent
commit
68603245c4
1 changed files with 1 additions and 1 deletions
  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