fix index remaining when player is destroyed

This commit is contained in:
Benjamin Palko 2025-08-29 13:31:56 -04:00
parent d78b9b275f
commit 75760e2354

View file

@ -16,6 +16,12 @@ Singleton {
property int currentIndex: 0
}
onPlayersChanged: {
if (!active) {
properties.currentIndex = 0;
}
}
function nextPlayer() {
if (players.length == 0) {
return;