1
0
Fork 0

Fix: [NewGRF] PrepareLayout worked on a copy of the data resulting in bad sprite layouts. (#14013)

pull/14017/head
Peter Nelson 2025-04-16 22:27:36 +01:00 committed by GitHub
parent 378ea52ac6
commit 1f83ea41fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -617,7 +617,7 @@ uint32_t NewGRFSpriteLayout::PrepareLayout(uint32_t orig_offset, uint32_t newgrf
* and apply the default sprite offsets (unless disabled). */
const TileLayoutRegisters *regs = this->registers.empty() ? nullptr : this->registers.data();
bool ground = true;
for (DrawTileSeqStruct result : result_seq) {
for (DrawTileSeqStruct &result : result_seq) {
TileLayoutFlags flags = TLF_NOTHING;
if (regs != nullptr) flags = regs->flags;