diff options
author | frosch <frosch@openttd.org> | 2013-07-07 12:07:06 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-07-07 12:07:06 +0000 |
commit | 0c0db5c4c7f509ac631dacd9375e007388abcf92 (patch) | |
tree | edcce40769215535446efafa44af5dd0cb9e6436 /src/gfx_layout.h | |
parent | 51f0d11ee3a5cd7b31fcf575424e228d4e69eaa5 (diff) | |
download | openttd-0c0db5c4c7f509ac631dacd9375e007388abcf92.tar.xz |
(svn r25574) -Fix (r25570): Trouble with initialisation order of static members of Layouter and FontCache.
Diffstat (limited to 'src/gfx_layout.h')
-rw-r--r-- | src/gfx_layout.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gfx_layout.h b/src/gfx_layout.h index 1215954cb..c252d15eb 100644 --- a/src/gfx_layout.h +++ b/src/gfx_layout.h @@ -198,7 +198,7 @@ class Layouter : public AutoDeleteSmallVector<ParagraphLayout::Line *, 4> { ~LineCacheItem() { delete layout; } }; typedef std::map<LineCacheKey, LineCacheItem> LineCache; - static LineCache linecache; + static LineCache *linecache; static LineCacheItem &GetCachedParagraphLayout(const char *str, size_t len, const FontState &state); |