summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-10-14 14:50:07 +0000
committerglx <glx@openttd.org>2007-10-14 14:50:07 +0000
commitf45b2e8d381a2028cd7d6a768551970aa6ce7c7a (patch)
tree0df3bbee81cc3bd91143134aaed463b9809edadf
parentc78c96a8ad9e0670ad74c2e27caa8915b4dfa07b (diff)
downloadopenttd-f45b2e8d381a2028cd7d6a768551970aa6ce7c7a.tar.xz
(svn r11257) -Fix (r11145): wrong endian used when preparing text ref stack
-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++;
}
}