summaryrefslogtreecommitdiff
path: root/src/shopitem.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-09-28 21:26:48 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-09-28 21:26:48 +0200
commit3c89797394c83db8bc2204fdf5841dd3068f09d0 (patch)
tree6fc2d3ad06b9d589851397ff723a32b231a100de /src/shopitem.cpp
parent51f0c23ac190c83bebeace8a49cd2ecd1143fa8c (diff)
downloadmana-3c89797394c83db8bc2204fdf5841dd3068f09d0.tar.gz
mana-3c89797394c83db8bc2204fdf5841dd3068f09d0.tar.bz2
mana-3c89797394c83db8bc2204fdf5841dd3068f09d0.tar.xz
mana-3c89797394c83db8bc2204fdf5841dd3068f09d0.zip
Removed getter/setter cruft from ItemInfo
Made the class and the code in general more readable by removing all the needless getters and setters.
Diffstat (limited to 'src/shopitem.cpp')
-rw-r--r--src/shopitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shopitem.cpp b/src/shopitem.cpp
index e966dbbf..2fb33778 100644
--- a/src/shopitem.cpp
+++ b/src/shopitem.cpp
@@ -30,7 +30,7 @@ ShopItem::ShopItem(int inventoryIndex, int id,
Item(id, 0),
mPrice(price)
{
- mDisplayName = getInfo().getName() +
+ mDisplayName = getInfo().name +
" (" + Units::formatCurrency(mPrice) + ")";
setInvIndex(inventoryIndex);
addDuplicate(inventoryIndex, quantity);