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 74fdad96fe
commit 3d71ab1b77

View File

@ -55,6 +55,9 @@ namespace big
script::get_current()->yield(); 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; busy = false;
} }
} }