summaryrefslogtreecommitdiffstats
path: root/sigmod
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-12-25 09:46:24 -0500
committerBen Boeckel <MathStuf@gmail.com>2008-12-25 09:46:24 -0500
commit67e741bba4eef3659891d503aa5fe1221f55f4fb (patch)
tree8bc6acb686f2e46a5aa1e13ca7755e9c18d90f99 /sigmod
parentfab2eeae0058a2f2f592cb85874c61a803b0cafe (diff)
Item's setSellPrice shouldn't error if sellable isn't set; it'll just get ignored later anyways
Diffstat (limited to 'sigmod')
-rw-r--r--sigmod/Item.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/sigmod/Item.cpp b/sigmod/Item.cpp
index 5d43ad42..e6f521dd 100644
--- a/sigmod/Item.cpp
+++ b/sigmod/Item.cpp
@@ -131,11 +131,6 @@ void Sigmod::Item::setPrice(const int price)
void Sigmod::Item::setSellPrice(const int sellPrice)
{
- if (!m_sellable)
- {
- emit(error("Item is not sellable"));
- return;
- }
if ((sellPrice < 0) || (m_price < sellPrice))
emit(error(bounds("sellPrice", 0, m_price, sellPrice)));
else