diff options
author | smatz <smatz@openttd.org> | 2009-06-25 19:23:09 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-06-25 19:23:09 +0000 |
commit | c30a87758fca7b0203b36b886aaa360f383f9278 (patch) | |
tree | 335422881e40cf333948e202c7f474eda030ad43 /src/misc_gui.cpp | |
parent | 103bff508bf4ddfc2018a1ee487742b5f6401568 (diff) | |
download | openttd-c30a87758fca7b0203b36b886aaa360f383f9278.tar.xz |
(svn r16659) -Codechange: rename GetAcceptedCargo() to AddAcceptedCargo() and change its behaviour accordingly
-Codechange: remove dummy GetAcceptedCargo_*() handlers
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 076e74231..86bc8409f 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -108,7 +108,6 @@ public: /* Because build_date is not set yet in every TileDesc, we make sure it is empty */ TileDesc td; - AcceptedCargo ac; td.build_date = INVALID_DATE; @@ -130,7 +129,9 @@ public: td.grf = NULL; - GetAcceptedCargo(tile, ac); + AcceptedCargo ac; + memset(ac, 0, sizeof(AcceptedCargo)); + AddAcceptedCargo(tile, ac); GetTileDesc(tile, &td); uint line_nr = 0; |