summaryrefslogtreecommitdiff
path: root/src/gfxinit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gfxinit.cpp')
-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");