summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2011-01-04 22:59:42 +0000
committerterkhen <terkhen@openttd.org>2011-01-04 22:59:42 +0000
commitb890bcb84070813a2dd5dbf14fb74b10ac7cced3 (patch)
treeab629890ac4400c67d0485facc0122c088e525bb /src
parent0b27228d9a51de00b1a40fea43463c61b782fa15 (diff)
downloadopenttd-b890bcb84070813a2dd5dbf14fb74b10ac7cced3.tar.xz
(svn r21730) -Fix (r21718): The smallmap owner legend would not be properly initialized in games without companies.
Diffstat (limited to 'src')
-rw-r--r--src/misc.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/misc.cpp b/src/misc.cpp
index 40fd7e0d8..e2f6d0929 100644
--- a/src/misc.cpp
+++ b/src/misc.cpp
@@ -25,6 +25,7 @@
#include "tilehighlight_func.h"
#include "network/network_func.h"
#include "window_func.h"
+#include "smallmap_gui.h"
extern TileIndex _cur_tileloop_tile;
@@ -121,6 +122,9 @@ void InitializeGame(uint size_x, uint size_y, bool reset_date, bool reset_settin
InitializeEconomy();
+ /* Rebuild the smallmap owner legend. */
+ BuildOwnerLegend();
+
ResetObjectToPlace();
GamelogReset();