Skip to content

Commit

Permalink
fix duo player bug weird strange weird
Browse files Browse the repository at this point in the history
  • Loading branch information
MatusGuy committed Nov 17, 2024
1 parent 460f906 commit 4ccfadf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/supertux/player_status_hud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<float>(m_item_pocket_border->get_height() * i);
Vector pos(BORDER_X, BORDER_Y + ypos);
Expand Down

0 comments on commit 4ccfadf

Please sign in to comment.