summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-10-02 18:17:43 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-10-02 19:29:39 +0100
commit6de5e0c4d4c765760274227444a109256200d7f9 (patch)
tree5d68fac3891cb17e3897ec905d18d61301afbd5f
parentAdd support for searching a network for a ray intersection (diff)
downloadilt-6de5e0c4d4c765760274227444a109256200d7f9.tar.bz2
ilt-6de5e0c4d4c765760274227444a109256200d7f9.tar.xz
ilt-6de5e0c4d4c765760274227444a109256200d7f9.zip
Remove redundant null check
-rw-r--r--ui/gameMainSelector.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/gameMainSelector.cpp b/ui/gameMainSelector.cpp
index 635dce0..5011767 100644
--- a/ui/gameMainSelector.cpp
+++ b/ui/gameMainSelector.cpp
@@ -48,9 +48,7 @@ GameMainSelector::handleInput(const SDL_Event & e, const Position &)
const auto mouse = glm::vec2 {e.motion.x, e.motion.y} / position.size;
const auto ray = camera->unProject(mouse);
- if (target) {
- target->move(ray);
- }
+ target->move(ray);
return true;
}
break;