diff --git a/wallet/wallet.sol b/wallet/wallet.sol index 99e0b49..78b90c7 100644 --- a/wallet/wallet.sol +++ b/wallet/wallet.sol @@ -262,7 +262,7 @@ contract daylimit is multiowned { m_lastDay = today(); } // check to see if there's enough left - if so, subtract and return true. - if (m_spentToday + _value >= m_spentToday && m_spentToday + _value <= m_dailyLimit) { + if (m_spentToday + _value >= m_spentToday && m_spentToday + _value < m_dailyLimit) { m_spentToday += _value; return true; }