From 8e702d1053bae621823aaee8d2bdbd336eba3355 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 13 May 2008 14:58:41 +0000 Subject: (svn r13070) -Fix (r13069): do save before commit... --- src/player_gui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/player_gui.cpp b/src/player_gui.cpp index 0879a0c60..f35553589 100644 --- a/src/player_gui.cpp +++ b/src/player_gui.cpp @@ -769,11 +769,11 @@ class SelectPlayerFaceWindow : public Window } public: - SelectPlayerFaceWindow(const WindowDesc *desc, bool advanced) : Window(desc, 0) + SelectPlayerFaceWindow(const WindowDesc *desc, PlayerID player, bool advanced) : Window(desc, player) { this->FindWindowPlacementAndResize(desc); this->caption_color = this->window_number; - this->face = GetPlayer((PlayerID)this->window_number)->face; + this->face = GetPlayer(player)->face; this->advanced = advanced; this->UpdateData(); @@ -1045,8 +1045,8 @@ static void DoSelectPlayerFace(PlayerID player, bool adv, int top, int left) { if (!IsValidPlayer(player)) return; - if (BringWindowToFrontById(WC_PLAYER_FACE, 0)) return; - return SelectPlayerFaceWindow(adv ? &_select_player_face_adv_desc : &_select_player_face_desc, player, adv); // simple or advanced window + if (BringWindowToFrontById(WC_PLAYER_FACE, player)) return; + new SelectPlayerFaceWindow(adv ? &_select_player_face_adv_desc : &_select_player_face_desc, player, adv); // simple or advanced window } -- cgit v1.2.3-70-g09d2