diff options
author | rubidium <rubidium@openttd.org> | 2007-08-30 13:03:56 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-30 13:03:56 +0000 |
commit | 235ad4ab6bf3133517a7a779c398e30f51bdbbad (patch) | |
tree | 141633b357757cb790c904dc033f8479d58ba5e5 /src/aircraft_gui.cpp | |
parent | 6edf2d3a1bd90619d0e5257becfd3df708fe3554 (diff) | |
download | openttd-235ad4ab6bf3133517a7a779c398e30f51bdbbad.tar.xz |
(svn r11003) -Codechange: replace Vehicle->next to Vehicle->Next() and Vehicle->SetNext() so we can trap instances that change a next pointer and (in the future) update the first/previous pointers based on that.
Diffstat (limited to 'src/aircraft_gui.cpp')
-rw-r--r-- | src/aircraft_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/aircraft_gui.cpp b/src/aircraft_gui.cpp index 28813eb12..b161c84a7 100644 --- a/src/aircraft_gui.cpp +++ b/src/aircraft_gui.cpp @@ -133,7 +133,7 @@ static void AircraftDetailsWndProc(Window *w, WindowEvent *e) SetDParam(0, v->cargo_type); SetDParam(1, v->cargo_cap); - u = v->next; + u = v->Next(); SetDParam(2, u->cargo_type); SetDParam(3, u->cargo_cap); DrawString(60, y, (u->cargo_cap != 0) ? STR_A019_CAPACITY : STR_A01A_CAPACITY, 0); @@ -151,7 +151,7 @@ static void AircraftDetailsWndProc(Window *w, WindowEvent *e) y += 10; } - } while ( (v=v->next) != NULL); + } while ((v = v->Next()) != NULL); } } break; |