fix(Player): SelectedPlayer struct was a copy and never updated causing the selected player to never update

This commit is contained in:
Yimura 2022-01-06 09:26:45 +01:00
parent 9c4058e9cd
commit bac623ed8b
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682

View File

@ -55,6 +55,9 @@ namespace big
script::get_current()->yield();
}
if (g.window.player) // update selected player only while the player menu is open
g.selected_player = g.players[g.selected_player.id];
busy = false;
}
}