forked from mirror/OpenTTD
(svn r7254) -Fix (r7250): move unicode glyph map initialisation to just before newgrf files are loaded, else newgrf glyphs will be cleared out too. (thanks Hadez)
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "newgrf.h"
|
||||
#include "md5.h"
|
||||
#include "variables.h"
|
||||
#include "fontcache.h"
|
||||
#include <string.h>
|
||||
|
||||
typedef struct MD5File {
|
||||
@@ -372,6 +373,9 @@ static void LoadSpriteTables(void)
|
||||
assert(load_index == SPR_AIRPORTX_BASE);
|
||||
load_index += LoadGrfFile("airports.grf", load_index, i++);
|
||||
|
||||
/* Initialize the unicode to sprite mapping table */
|
||||
InitializeUnicodeGlyphMap();
|
||||
|
||||
LoadNewGRF(load_index, i);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user