From 49aa9be3dda68dba871f15590e094da8428883fd Mon Sep 17 00:00:00 2001 From: bog Date: Sun, 29 Oct 2023 23:55:22 +0100 Subject: [PATCH] :bug: fix mouse y position. --- src/Game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Game.cpp b/src/Game.cpp index a7a4c82..c622c41 100644 --- a/src/Game.cpp +++ b/src/Game.cpp @@ -176,7 +176,7 @@ namespace d2 int Game::mouse_y() const { int y; - SDL_GetMouseState(&y, nullptr); + SDL_GetMouseState(nullptr, &y); return y; }