From 3db8b544ba47d683b9bd50efcad402045fef312c Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 16 Jan 2009 16:12:12 +0000 Subject: (svn r15110) -Fix: reading the shortname of graphicssets always missed the first character. --- src/gfxinit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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"); -- cgit v1.2.3-54-g00ecf