diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-02 18:17:43 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-02 19:29:39 +0100 |
commit | 6de5e0c4d4c765760274227444a109256200d7f9 (patch) | |
tree | 5d68fac3891cb17e3897ec905d18d61301afbd5f /ui/gameMainSelector.cpp | |
parent | Add support for searching a network for a ray intersection (diff) | |
download | ilt-6de5e0c4d4c765760274227444a109256200d7f9.tar.bz2 ilt-6de5e0c4d4c765760274227444a109256200d7f9.tar.xz ilt-6de5e0c4d4c765760274227444a109256200d7f9.zip |
Remove redundant null check
Diffstat (limited to 'ui/gameMainSelector.cpp')
-rw-r--r-- | ui/gameMainSelector.cpp | 4 |
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; |