diff options
Diffstat (limited to 'src/equipment.h')
-rw-r--r-- | src/equipment.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/equipment.h b/src/equipment.h index 00f9d410..71a15734 100644 --- a/src/equipment.h +++ b/src/equipment.h @@ -29,9 +29,9 @@ class Item; class Equipment { public: - Equipment(): mBackend(0) {} + Equipment(): mBackend(nullptr) {} - ~Equipment() { mBackend = 0; } + ~Equipment() { mBackend = nullptr; } class Backend { public: @@ -52,7 +52,7 @@ class Equipment * Get equipment at the given slot. */ Item *getEquipment(int slotIndex) const - { return mBackend ? mBackend->getEquipment(slotIndex) : 0; } + { return mBackend ? mBackend->getEquipment(slotIndex) : nullptr; } const std::string getSlotName(int slotIndex) const { return mBackend ? mBackend->getSlotName(slotIndex) : std::string(); } |