diff options
Diffstat (limited to 'pokemod/CoinListObject.cpp')
| -rw-r--r-- | pokemod/CoinListObject.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/pokemod/CoinListObject.cpp b/pokemod/CoinListObject.cpp index 3eb44e91..ff2b8d80 100644 --- a/pokemod/CoinListObject.cpp +++ b/pokemod/CoinListObject.cpp @@ -84,9 +84,7 @@ void CoinListObject::setType(const int type) emit(error(bounds("type"))); return; } - m_type = type; - m_object = INT_MAX; - emit(changed()); + CHECK(type); } void CoinListObject::setObject(const int object) @@ -96,8 +94,7 @@ void CoinListObject::setObject(const int object) emit(error(bounds("object"))); return; } - m_object = object; - emit(changed()); + CHECK(object); } void CoinListObject::setAmount(const int amount) @@ -107,14 +104,12 @@ void CoinListObject::setAmount(const int amount) emit(error(bounds("amount"))); return; } - m_amount = amount; - emit(changed()); + CHECK(amount); } void CoinListObject::setCost(const int cost) { - m_cost = cost; - emit(changed()); + CHECK(cost); } int CoinListObject::type() const |
