(svn r13027) -Codechange: use StrEmpty instead of arr[0] == '\0' and remove the need for WE_ON_EDIT_TEXT_CANCEL.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user