diff options
author | rubidium <rubidium@openttd.org> | 2007-09-04 11:58:27 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-09-04 11:58:27 +0000 |
commit | 9706c32ed69f560199ea6232fb5078876912e1e9 (patch) | |
tree | eb509837e511a15770453fc1943e2b7c7180be64 /src/player_gui.cpp | |
parent | b1effc466eac33997567e2f2e68812afb1c0a7f6 (diff) | |
download | openttd-9706c32ed69f560199ea6232fb5078876912e1e9.tar.xz |
(svn r11040) -Fix [FS#1179]: removing CMD_AUTO from some commands could remotely trigger an assertion.
Diffstat (limited to 'src/player_gui.cpp')
-rw-r--r-- | src/player_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/player_gui.cpp b/src/player_gui.cpp index c832ac06d..f0af0366d 100644 --- a/src/player_gui.cpp +++ b/src/player_gui.cpp @@ -834,7 +834,7 @@ static void PlayerCompanyWndProc(Window *w, WindowEvent *e) break; case WE_PLACE_OBJ: - if (DoCommandP(e->we.place.tile, 0, 0, NULL, CMD_BUILD_COMPANY_HQ | CMD_AUTO | CMD_NO_WATER | CMD_MSG(STR_7071_CAN_T_BUILD_COMPANY_HEADQUARTERS))) + if (DoCommandP(e->we.place.tile, 0, 0, NULL, CMD_BUILD_COMPANY_HQ | CMD_NO_WATER | CMD_MSG(STR_7071_CAN_T_BUILD_COMPANY_HEADQUARTERS))) ResetObjectToPlace(); w->widget[PCW_WIDGET_BUILD_VIEW_HQ].type = WWT_PUSHTXTBTN; // this button can now behave as a normal push button RaiseWindowButtons(w); |