From 4ccfadf44e4c61c55d6ef8e8921669b904b54183 Mon Sep 17 00:00:00 2001 From: MatusGuy Date: Sun, 17 Nov 2024 09:44:11 +0000 Subject: [PATCH] fix duo player bug weird strange weird --- src/supertux/player_status_hud.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/supertux/player_status_hud.cpp b/src/supertux/player_status_hud.cpp index 80037f9f4b..2f23a3851a 100644 --- a/src/supertux/player_status_hud.cpp +++ b/src/supertux/player_status_hud.cpp @@ -100,7 +100,7 @@ PlayerStatusHUD::draw(DrawingContext& context) if (m_player_status.is_item_pocket_allowed()) { - for (int i = 0; i < m_player_status.m_num_players; i++) + for (int i = 0; i < InputManager::current()->get_num_users(); i++) { float ypos = static_cast(m_item_pocket_border->get_height() * i); Vector pos(BORDER_X, BORDER_Y + ypos);