summaryrefslogtreecommitdiff
path: root/misc_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc_gui.c')
-rw-r--r--misc_gui.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc_gui.c b/misc_gui.c
index a5ad7cb21..e5ffef5c3 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -1647,7 +1647,8 @@ static int32 ClickChangePlayerCheat(int32 p1, int32 p2)
{
while (IsValidPlayer((PlayerID)p1)) {
if (_players[p1].is_active) {
- _local_player = (PlayerID)p1;
+ SetLocalPlayer((PlayerID)p1);
+
MarkWholeScreenDirty();
return _local_player;
}