diff options
author | rubidium <rubidium@openttd.org> | 2009-01-16 16:12:12 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-16 16:12:12 +0000 |
commit | 3db8b544ba47d683b9bd50efcad402045fef312c (patch) | |
tree | 892f098f8240b027f11a1306b2c72c3a52615a7e | |
parent | 8510afe23325edef6d8ff5538662acb8c01c990a (diff) | |
download | openttd-3db8b544ba47d683b9bd50efcad402045fef312c.tar.xz |
(svn r15110) -Fix: reading the shortname of graphicssets always missed the first character.
-rw-r--r-- | src/gfxinit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gfxinit.cpp b/src/gfxinit.cpp index 4fda4e12b..905bfe2a2 100644 --- a/src/gfxinit.cpp +++ b/src/gfxinit.cpp @@ -362,7 +362,7 @@ static bool FillGraphicsSetDetails(GraphicsSet *graphics, IniFile *ini, const ch fetch_metadata("shortname"); for (uint i = 0; item->value[i] != '\0' && i < 4; i++) { - graphics->shortname |= ((uint8)item->value[i]) << (32 - i * 8); + graphics->shortname |= ((uint8)item->value[i]) << (i * 8); } fetch_metadata("version"); |