1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-24 23:19:09 +00:00

Fix 5e413c9d: Last sprite offset in GRF file was not recorded (#10062)

A line was missed when preparing PR #9988, as this had been added
in a commit prior to the one which the PR was immediately based on
This commit is contained in:
Jonathan G Rennison
2022-09-29 10:56:42 +01:00
committed by GitHub
parent f3fd9b5895
commit 73e5c57e6b

View File

@@ -592,6 +592,7 @@ void ReadGRFSpriteOffsets(SpriteFile &file)
}
file.SkipBytes(length);
}
if (prev_id != 0) _grf_sprite_offsets[prev_id] = offset;
/* Continue processing the data section. */
file.SeekTo(old_pos, SEEK_SET);