From 6de5e0c4d4c765760274227444a109256200d7f9 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 2 Oct 2022 18:17:43 +0100 Subject: Remove redundant null check --- ui/gameMainSelector.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ui') 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; -- cgit v1.2.3