diff options
author | rubidium <rubidium@openttd.org> | 2010-01-23 15:53:09 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-01-23 15:53:09 +0000 |
commit | 9e106dca816b6ad0e6ce1d6f163504fe0d8e3eee (patch) | |
tree | a7bf0435f53ee01c0d50ecf5eba0501a85acc43e | |
parent | 00ffde86d2302e1a7929bc9728914e3e92441c5c (diff) | |
download | openttd-9e106dca816b6ad0e6ce1d6f163504fe0d8e3eee.tar.xz |
(svn r18896) -Fix [FS#3558]: pressing cancel for the query windows of the world generation window caused the default to be set instead of no changes to the value
-rw-r--r-- | src/genworld_gui.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp index c5432bcd1..0ceb5ac26 100644 --- a/src/genworld_gui.cpp +++ b/src/genworld_gui.cpp @@ -732,6 +732,9 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow { virtual void OnQueryTextFinished(char *str) { + /* Was 'cancel' pressed? */ + if (str == NULL) return; + int32 value; if (!StrEmpty(str)) { value = atoi(str); |