diff options
Diffstat (limited to 'booleancondition.cpp')
| -rw-r--r-- | booleancondition.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/booleancondition.cpp b/booleancondition.cpp index 8194271..26d8063 100644 --- a/booleancondition.cpp +++ b/booleancondition.cpp @@ -4,20 +4,20 @@ BooleanCondition::BooleanCondition() { } -bool BooleanCondition::isValid(Die b) const +bool BooleanCondition::isValid(Die* b) const { switch(m_operator) { case Equal: - return (b.getValue()==m_value); + return (b->getValue()==m_value); case GreaterThan: - return (b.getValue()>m_value); + return (b->getValue()>m_value); case LesserThan: - return (b.getValue()<m_value); + return (b->getValue()<m_value); case GreaterOrEqual: - return (b.getValue()>=m_value); + return (b->getValue()>=m_value); case LesserOrEqual: - return (b.getValue()<=m_value); + return (b->getValue()<=m_value); } |