summaryrefslogtreecommitdiff
path: root/settings_gui.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-05-01 21:45:35 +0000
committerDarkvater <darkvater@openttd.org>2006-05-01 21:45:35 +0000
commitc0cf93a9b070c5b11effd88d8e71e2b2017c2ae6 (patch)
treeaa885daf9839bb346d48856fdd871caa29e36614 /settings_gui.c
parent22fd1a348e4f34018a100ab992b79d09ef1c6d26 (diff)
downloadopenttd-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.c2
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;