summaryrefslogtreecommitdiff
path: root/src/resources/item/complexitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/item/complexitem.cpp')
-rw-r--r--src/resources/item/complexitem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/item/complexitem.cpp b/src/resources/item/complexitem.cpp
index 08901a90e..047c50614 100644
--- a/src/resources/item/complexitem.cpp
+++ b/src/resources/item/complexitem.cpp
@@ -57,7 +57,7 @@ ComplexItem::~ComplexItem()
void ComplexItem::addChild(const Item *const item,
const int amount)
{
- if (!item)
+ if (item == nullptr)
return;
increaseQuantity(amount);
Item *child = nullptr;
@@ -72,7 +72,7 @@ void ComplexItem::addChild(const Item *const item,
break;
}
}
- if (child)
+ if (child != nullptr)
{
child->increaseQuantity(amount);
}