diff options
Diffstat (limited to 'src/genworld_gui.cpp')
-rw-r--r-- | src/genworld_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp index da8b450f8..13867c0e0 100644 --- a/src/genworld_gui.cpp +++ b/src/genworld_gui.cpp @@ -525,7 +525,7 @@ static void GenerateLandscapeWndProc(Window *w, WindowEvent *e) break; case WE_ON_EDIT_TEXT: - if (e->we.edittext.str != NULL) { + if (!StrEmpty(e->we.edittext.str)) { int32 value = atoi(e->we.edittext.str); switch (WP(w, generate_d).widget_id) { @@ -740,7 +740,7 @@ static void CreateScenarioWndProc(Window *w, WindowEvent *e) break; case WE_ON_EDIT_TEXT: - if (e->we.edittext.str != NULL) { + if (!StrEmpty(e->we.edittext.str)) { int32 value = atoi(e->we.edittext.str); switch (WP(w, generate_d).widget_id) { |