From 7d49c9699890be9a274613dfaab8cd8c0692a95e Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 23 Aug 2024 17:41:43 +0200 Subject: [PATCH] QDENGINE: Remove unused variable --- engines/qdengine/qdcore/qd_game_scene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/qdengine/qdcore/qd_game_scene.cpp b/engines/qdengine/qdcore/qd_game_scene.cpp index e4af3b28fab..5d8ba1f3c6f 100644 --- a/engines/qdengine/qdcore/qd_game_scene.cpp +++ b/engines/qdengine/qdcore/qd_game_scene.cpp @@ -1073,7 +1073,7 @@ void qdGameScene::update_mouse_cursor() { qdInterfaceDispatcher *ip = qdInterfaceDispatcher::get_dispatcher(); if (ip && ip->is_mouse_hover()) { - if (qdGameDispatcher *dsp = qdGameDispatcher::get_dispatcher()) + if (qdGameDispatcher::get_dispatcher() != nullptr) mouse_cursor = qdGameObjectMouse::INGAME_INTERFACE_CURSOR; } else { Vect2f r = _camera.scr2plane(Vect2s(dp->mouse_cursor_pos().x, dp->mouse_cursor_pos().y));