aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-04 17:11:07 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-04 17:11:07 +0100
commit4e98ad053942a47e1f3f236702012c5ffd5852eb (patch)
tree303d54ba9dd80781025f1a461bc6e4bc9b6d233f /src/crepe/system
parent7068db1e5892d6326c99c3828e85bced80fce5b6 (diff)
last change
Diffstat (limited to 'src/crepe/system')
-rw-r--r--src/crepe/system/InputSystem.cpp2
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)) {