1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Or should not be the same way as And.

This commit is contained in:
Michał W. Urbańczyk 2013-07-03 20:18:41 +00:00
parent 1e8c58ecdf
commit 68603245c4

View File

@ -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