summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-16 16:12:12 +0000
committerrubidium <rubidium@openttd.org>2009-01-16 16:12:12 +0000
commit3db8b544ba47d683b9bd50efcad402045fef312c (patch)
tree892f098f8240b027f11a1306b2c72c3a52615a7e /src
parent8510afe23325edef6d8ff5538662acb8c01c990a (diff)
downloadopenttd-3db8b544ba47d683b9bd50efcad402045fef312c.tar.xz
(svn r15110) -Fix: reading the shortname of graphicssets always missed the first character.
Diffstat (limited to 'src')
-rw-r--r--src/gfxinit.cpp2
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");