summaryrefslogtreecommitdiff
path: root/src/itemsoundmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/itemsoundmanager.cpp')
-rw-r--r--src/itemsoundmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/itemsoundmanager.cpp b/src/itemsoundmanager.cpp
index b44445787..060cd2392 100644
--- a/src/itemsoundmanager.cpp
+++ b/src/itemsoundmanager.cpp
@@ -34,7 +34,7 @@
void ItemSoundManager::playSfx(const Item *const item,
const ItemSoundEvent::Type sound)
{
- if (!item)
+ if (item == nullptr)
return;
playSfx(item->getId(), sound);
}
@@ -48,7 +48,7 @@ void ItemSoundManager::playSfx(const int itemId,
void ItemSoundManager::playSfx(const FloorItem *const item,
const ItemSoundEvent::Type sound)
{
- if (!item)
+ if (item == nullptr)
return;
playSfx(ItemDB::get(item->getItemId()), sound);
}