forked from mirror/OpenTTD
(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
This commit is contained in:
@@ -732,6 +732,9 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow {
|
|||||||
|
|
||||||
virtual void OnQueryTextFinished(char *str)
|
virtual void OnQueryTextFinished(char *str)
|
||||||
{
|
{
|
||||||
|
/* Was 'cancel' pressed? */
|
||||||
|
if (str == NULL) return;
|
||||||
|
|
||||||
int32 value;
|
int32 value;
|
||||||
if (!StrEmpty(str)) {
|
if (!StrEmpty(str)) {
|
||||||
value = atoi(str);
|
value = atoi(str);
|
||||||
|
Reference in New Issue
Block a user