summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2015-09-13 12:04:47 +0000
committeralberth <alberth@openttd.org>2015-09-13 12:04:47 +0000
commit4cbfe940cb6fa5fda959f230d7e9be664543eddb (patch)
tree71d1321ddaba0ca91e49abca5fc514056026b0be /src
parent29b88c02a3aa49029229afcf7b0c92bdc0d7c19d (diff)
downloadopenttd-4cbfe940cb6fa5fda959f230d7e9be664543eddb.tar.xz
(svn r27397) -Fix(r27346)[FS#6370]: Fix object editing crash in scenario editor (based on work by adf88)
Diffstat (limited to 'src')
-rw-r--r--src/terraform_gui.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/terraform_gui.cpp b/src/terraform_gui.cpp
index acc277249..7a319d66f 100644
--- a/src/terraform_gui.cpp
+++ b/src/terraform_gui.cpp
@@ -462,7 +462,7 @@ static const NWidgetPart _nested_scen_edit_land_gen_widgets[] = {
NWidget(WWT_IMGBTN, COLOUR_GREY, WID_ETT_PLACE_DESERT), SetMinimalSize(22, 22),
SetFill(0, 1), SetDataTip(SPR_IMG_DESERT, STR_TERRAFORM_TOOLTIP_DEFINE_DESERT_AREA),
EndContainer(),
- NWidget(WWT_IMGBTN, COLOUR_GREY, WID_ETT_PLACE_OBJECT), SetMinimalSize(23, 22),
+ NWidget(WWT_PUSHIMGBTN, COLOUR_GREY, WID_ETT_PLACE_OBJECT), SetMinimalSize(23, 22),
SetFill(0, 1), SetDataTip(SPR_IMG_TRANSMITTER, STR_SCENEDIT_TOOLBAR_PLACE_OBJECT),
NWidget(NWID_SPACER), SetFill(1, 0),
EndContainer(),
@@ -704,7 +704,6 @@ struct ScenarioEditorLandscapeGenerationWindow : Window {
{
this->RaiseButtons();
this->SetDirty();
- DeleteWindowById(WC_BUILD_OBJECT, 0);
}
static HotkeyList hotkeys;