summaryrefslogtreecommitdiff
path: root/src/shopitem.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-02-26 08:24:01 -0700
committerIra Rice <irarice@gmail.com>2009-02-26 08:24:01 -0700
commit0ffbbaa33f633bccf3b2a49713eb1cb117ff8a5a (patch)
tree51cec1c070c97b7d03120254710da1577daf5f92 /src/shopitem.cpp
parent0dde31c3db09113639fa443142995b6efcff6646 (diff)
downloadmana-0ffbbaa33f633bccf3b2a49713eb1cb117ff8a5a.tar.gz
mana-0ffbbaa33f633bccf3b2a49713eb1cb117ff8a5a.tar.bz2
mana-0ffbbaa33f633bccf3b2a49713eb1cb117ff8a5a.tar.xz
mana-0ffbbaa33f633bccf3b2a49713eb1cb117ff8a5a.zip
Fixed an error in shoplistboxes as identified by Octalot.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/shopitem.cpp')
-rw-r--r--src/shopitem.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/shopitem.cpp b/src/shopitem.cpp
index 5573eb37..00875a2d 100644
--- a/src/shopitem.cpp
+++ b/src/shopitem.cpp
@@ -24,8 +24,7 @@
#include "utils/stringutils.h"
-ShopItem::ShopItem (int inventoryIndex, int id,
- int quantity, int price) :
+ShopItem::ShopItem (int inventoryIndex, int id, int quantity, int price) :
Item (id, 0), mPrice(price)
{
mDisplayName = getInfo().getName() + " (" + toString(mPrice) + " GP)";
@@ -50,8 +49,7 @@ ShopItem::~ShopItem()
}
}
-void ShopItem::addDuplicate(int inventoryIndex,
- int quantity)
+void ShopItem::addDuplicate(int inventoryIndex, int quantity)
{
DuplicateItem* di = new DuplicateItem;
di->inventoryIndex = inventoryIndex;