Skip to content

Commit 630a13f

Browse files
committed
Pass players as const ref.
Thanks @swagtoy
1 parent 2a74a4e commit 630a13f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/supertux/game_session.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ GameSession::update(float dt_sec, const Controller& controller)
556556

557557
check_end_conditions();
558558

559-
auto players = m_currentsector->get_players();
559+
const auto& players = m_currentsector->get_players();
560560

561561
// Respawning in new sector?
562562
if (!m_newsector.empty() && !m_newspawnpoint.empty() && (m_spawn_fade_timer.check() || m_spawn_fade_type == ScreenFade::FadeType::NONE)) {

0 commit comments

Comments
 (0)