diff options
Diffstat (limited to 'src/gui/widgets/itemcontainer.cpp')
-rw-r--r-- | src/gui/widgets/itemcontainer.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp index 9d8a7e264..d9d2b5f4b 100644 --- a/src/gui/widgets/itemcontainer.cpp +++ b/src/gui/widgets/itemcontainer.cpp @@ -159,7 +159,7 @@ namespace ItemContainer::ItemContainer(const Widget2 *const widget, Inventory *const inventory, - const bool forceQuantity) : + const ForceQuantity forceQuantity) : Widget(widget), KeyListener(), MouseListener(), @@ -342,7 +342,8 @@ void ItemContainer::draw(Graphics *graphics) // Draw item caption std::string caption; - if (item->getQuantity() > 1 || mForceQuantity) + if (item->getQuantity() > 1 || + mForceQuantity == ForceQuantity_true) { caption = toString(item->getQuantity()); } @@ -460,7 +461,8 @@ void ItemContainer::safeDraw(Graphics *graphics) // Draw item caption std::string caption; - if (item->getQuantity() > 1 || mForceQuantity) + if (item->getQuantity() > 1 || + mForceQuantity == ForceQuantity_true) { caption = toString(item->getQuantity()); } |