diff options
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; |