Skip to content

Commit

Permalink
Apply review suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Vankata453 <[email protected]>
  • Loading branch information
Brockengespenst and Vankata453 authored Nov 30, 2024
1 parent f738ee9 commit 7d7b95d
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 @@ -111,7 +111,7 @@ PlayerStatusHUD::draw(DrawingContext& context)
pos += 20;

Sprite* sprite = m_bonus_sprites[m_player_status.m_item_pockets[i]].get();
if (sprite != nullptr)
if (sprite)
sprite->draw(context.color(), pos, LAYER_HUD);
}
}
Expand Down

0 comments on commit 7d7b95d

Please sign in to comment.