mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r14057) -Fix: NewGRF text stack's "push word" didn't move the data around properly (minime)
This commit is contained in:
parent
fe87fa8205
commit
d1073ba574
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user