Changeset - r9907:6659629c9733
[Not reviewed]
master
0 1 0
rubidium - 16 years ago 2008-08-12 22:12:14
rubidium@openttd.org
(svn r14057) -Fix: NewGRF text stack's "push word" didn't move the data around properly (minime)
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/newgrf_text.cpp
Show inline comments
 
@@ -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);
0 comments (0 inline, 0 general)