Changeset - r14331:d34c7f3b5e48
[Not reviewed]
master
0 1 0
rubidium - 14 years ago 2010-01-23 15:53:09
rubidium@openttd.org
(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
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/genworld_gui.cpp
Show inline comments
 
@@ -732,6 +732,9 @@ struct GenerateLandscapeWindow : public 
 

	
 
	virtual void OnQueryTextFinished(char *str)
 
	{
 
		/* Was 'cancel' pressed? */
 
		if (str == NULL) return;
 

	
 
		int32 value;
 
		if (!StrEmpty(str)) {
 
			value = atoi(str);
0 comments (0 inline, 0 general)