diff options
Diffstat (limited to 'src/crepe/system/InputSystem.cpp')
-rw-r--r-- | src/crepe/system/InputSystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/system/InputSystem.cpp b/src/crepe/system/InputSystem.cpp index dca621e..a95ae1d 100644 --- a/src/crepe/system/InputSystem.cpp +++ b/src/crepe/system/InputSystem.cpp @@ -151,7 +151,7 @@ void InputSystem::handle_click(const MouseButton & mouse_button, const int & wor for (Button & button : buttons) { RefVector<Transform> transform_vec = mgr.get_components_by_id<Transform>(button.game_object_id); - OptionalRef<Transform> transform(transform_vec.front().get()); + Transform& transform(transform_vec.front().get()); if (button.active && is_mouse_inside_button(world_mouse_x, world_mouse_y, button, transform)) { |