fix(ui): correct player rotation logic in GameUI

This commit is contained in:
Kieran Kihn
2025-12-10 22:31:28 +08:00
parent 84d81cf2f0
commit d8d39f713d

View File

@@ -80,7 +80,7 @@ namespace UNO::UI {
}
auto self = other_player.begin() + static_cast<int>(clientGameState->getSelfId());
std::ranges::rotate(other_player, self);
std::ranges::rotate(other_player, std::next(self));
other_player.pop_back();
auto other_player_slint = std::make_shared<slint::VectorModel<OtherPlayer>>();