From 5cc8ad946efb3612eb6ea8655780b29fe4c62e19 Mon Sep 17 00:00:00 2001 From: QrchackOfficial Date: Mon, 5 Jun 2017 01:52:55 +0200 Subject: Remove superfluous pointer null checks --- src/itemdef.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/itemdef.cpp') diff --git a/src/itemdef.cpp b/src/itemdef.cpp index 51d8f1d5d..53b6e04cd 100644 --- a/src/itemdef.cpp +++ b/src/itemdef.cpp @@ -112,11 +112,8 @@ void ItemDefinition::reset() stack_max = 99; usable = false; liquids_pointable = false; - if(tool_capabilities) - { - delete tool_capabilities; - tool_capabilities = NULL; - } + delete tool_capabilities; + tool_capabilities = NULL; groups.clear(); sound_place = SimpleSoundSpec(); sound_place_failed = SimpleSoundSpec(); -- cgit v1.2.3