diff options
author | rubidium <rubidium@openttd.org> | 2008-08-12 22:12:14 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-08-12 22:12:14 +0000 |
commit | 142ea9a0aad3a9d05b28963aabbe129b05ed8d22 (patch) | |
tree | 0f5a6355240b2cc29a8663b6cf65a640bce391f0 | |
parent | 083fbf9a96151f9784191792ffcb4f28453d2d30 (diff) | |
download | openttd-142ea9a0aad3a9d05b28963aabbe129b05ed8d22.tar.xz |
(svn r14057) -Fix: NewGRF text stack's "push word" didn't move the data around properly (minime)
-rw-r--r-- | src/newgrf_text.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp index 4037290a7..b87c79458 100644 --- a/src/newgrf_text.cpp +++ b/src/newgrf_text.cpp @@ -544,8 +544,8 @@ struct TextRefStack { if (this->position >= 2) { this->position -= 2; } else { - for (uint i = lengthof(stack) - 3; i >= this->position; i--) { - this->stack[this->position + 2] = this->stack[this->position]; + for (int i = lengthof(stack) - 1; i >= this->position + 2; i--) { + this->stack[i] = this->stack[i - 2]; } } this->stack[this->position] = GB(word, 0, 8); |