diff options
author | alberth <alberth@openttd.org> | 2009-11-22 13:22:53 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-11-22 13:22:53 +0000 |
commit | bf93372ca26375e392ff62a91db4de4c126dff38 (patch) | |
tree | b09443cc8800ee93a79bb1df23f79283e8ddebbf /src/genworld_gui.cpp | |
parent | 2332034822a9e2c9b1ed58e7f243a48cb8d630a6 (diff) | |
download | openttd-bf93372ca26375e392ff62a91db4de4c126dff38.tar.xz |
(svn r18220) -Codechange: Reduce number of nested widget dynamic casts.
Diffstat (limited to 'src/genworld_gui.cpp')
-rw-r--r-- | src/genworld_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp index 4239283f7..5728c9ff2 100644 --- a/src/genworld_gui.cpp +++ b/src/genworld_gui.cpp @@ -481,7 +481,7 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow { * spaced without doing much magic. The space we can draw on is * covered by both the spacer and text widgets, so take their * outer most boundaries (left and right) as draw locations. */ - const NWidgetCore *nwi_spacer = this->GetWidget<NWidgetCore>(GLAND_HEIGHTMAP_NAME_SPACER); + const NWidgetBase *nwi_spacer = this->GetWidget<NWidgetBase>(GLAND_HEIGHTMAP_NAME_SPACER); DrawString(min(r.left, nwi_spacer->pos_x), max<int>(r.right, nwi_spacer->pos_x + nwi_spacer->current_x), r.top, this->name, TC_ORANGE); } break; } |