summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp
index 067e080c5..b395d8be7 100644
--- a/src/newgrf_text.cpp
+++ b/src/newgrf_text.cpp
@@ -554,7 +554,7 @@ void PrepareTextRefStackUsage()
byte *p = _newgrf_textrefstack.stack;
for (uint i = 0; i < 6; i++) {
for (uint j = 0; j < 32; j += 8) {
- *p = GB(_temp_store.Get(0x100 + i), 32 - j, 8);
+ *p = GB(_temp_store.Get(0x100 + i), j, 8);
p++;
}
}