diff options
author | Darkvater <darkvater@openttd.org> | 2006-05-01 21:45:35 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-05-01 21:45:35 +0000 |
commit | c0cf93a9b070c5b11effd88d8e71e2b2017c2ae6 (patch) | |
tree | aa885daf9839bb346d48856fdd871caa29e36614 /settings_gui.c | |
parent | 22fd1a348e4f34018a100ab992b79d09ef1c6d26 (diff) | |
download | openttd-c0cf93a9b070c5b11effd88d8e71e2b2017c2ae6.tar.xz |
(svn r4654) - Fix [NewGRF]: Properly read in the GRFID. This fixes GRFID checking and activation/deactivation. Do swap the GRFID for displaying purposes.
Diffstat (limited to 'settings_gui.c')
-rw-r--r-- | settings_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings_gui.c b/settings_gui.c index 2678f5eb0..47f0b37c5 100644 --- a/settings_gui.c +++ b/settings_gui.c @@ -957,7 +957,7 @@ static void NewgrfWndProc(Window *w, WindowEvent *e) // draw grf id x = DrawString(5, 209, STR_NEWGRF_GRF_ID, 0); - snprintf(_userstring, lengthof(_userstring), "%08X", _sel_grffile->grfid); + snprintf(_userstring, lengthof(_userstring), "%08X", BSWAP32(_sel_grffile->grfid)); DrawString(x + 2, 209, STR_SPEC_USERSTRING, 0x01); } } break; |