From 0e781f07bda4a73e89eb59b9765aa9f609647932 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 8 Mar 2022 16:39:17 +0100 Subject: fix: change move cursor argument to non-const reference --- src/game/input_configurator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/input_configurator.cpp') diff --git a/src/game/input_configurator.cpp b/src/game/input_configurator.cpp index e8d2fe5..ea1ee75 100644 --- a/src/game/input_configurator.cpp +++ b/src/game/input_configurator.cpp @@ -8,9 +8,9 @@ void exit_success() exit(EXIT_SUCCESS); } -auto move_cursor(const Vector2 &direction, const CursorController &cursor_controller) +auto move_cursor(const Vector2 &direction, CursorController &cursor_controller) { - return [direction, cursor_controller]() + return [direction, &cursor_controller]() { cursor_controller.move(direction, 1U); }; -- cgit v1.2.3-18-g5258