From 4e98ad053942a47e1f3f236702012c5ffd5852eb Mon Sep 17 00:00:00 2001 From: WBoerenkamps Date: Wed, 4 Dec 2024 17:11:07 +0100 Subject: last change --- src/crepe/system/InputSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/crepe/system/InputSystem.cpp') 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_vec = mgr.get_components_by_id(button.game_object_id); - OptionalRef 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)) { -- cgit v1.2.3