diff options
author | rubidium <rubidium@openttd.org> | 2008-05-10 08:58:52 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-10 08:58:52 +0000 |
commit | f23026cce8fa49974e3dd06e00dd073cb45f906b (patch) | |
tree | 746df1921c03a63762ea8a5c0a05a16d672c34fe /src/timetable_gui.cpp | |
parent | e099831210a55f71f7def91d2ee9fb6c3058a1eb (diff) | |
download | openttd-f23026cce8fa49974e3dd06e00dd073cb45f906b.tar.xz |
(svn r13027) -Codechange: use StrEmpty instead of arr[0] == '\0' and remove the need for WE_ON_EDIT_TEXT_CANCEL.
Diffstat (limited to 'src/timetable_gui.cpp')
-rw-r--r-- | src/timetable_gui.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/timetable_gui.cpp b/src/timetable_gui.cpp index e63e8f305..5115b1063 100644 --- a/src/timetable_gui.cpp +++ b/src/timetable_gui.cpp @@ -249,6 +249,8 @@ static void TimetableWndProc(Window *w, WindowEvent *we) } break; case WE_ON_EDIT_TEXT: { + if (we->we.edittext.str == NULL) break; + const Vehicle *v = GetVehicle(w->window_number); uint32 p1 = PackTimetableArgs(v, WP(w, timetable_d).sel); |