aboutsummaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorQrchackOfficial <qrchackofficial@gmail.com>2017-06-05 01:52:55 +0200
committerShadowNinja <shadowninja@minetest.net>2017-06-10 21:04:47 -0400
commit5cc8ad946efb3612eb6ea8655780b29fe4c62e19 (patch)
treed0edc2fa46e654e7443bedba942b1ec77ac4fef5 /src/game.cpp
parent7bfd53ba587a1be71c1f8b3ebc3208d59f4da9c1 (diff)
downloadminetest-5cc8ad946efb3612eb6ea8655780b29fe4c62e19.tar.gz
minetest-5cc8ad946efb3612eb6ea8655780b29fe4c62e19.tar.bz2
minetest-5cc8ad946efb3612eb6ea8655780b29fe4c62e19.zip
Remove superfluous pointer null checks
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 3b5f1f382..ed7316a4d 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -3231,8 +3231,7 @@ void Game::processClientEvents(CameraOrientation *cam)
{
HudElement *e = player->removeHud(event.hudrm.id);
- if (e != NULL)
- delete e;
+ delete e;
}
break;