1
0
Fork 0

Fix faa845398f: Crash when loading tile layout with no building sprites. (#13589)

Tile layouts are permitted to have no building sprites, therefore the test for an empty sequence of sprites is not valid.
pull/13591/head
Peter Nelson 2025-02-17 03:29:56 +00:00 committed by GitHub
parent 13944222f3
commit ed57b9c297
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 1 deletions

View File

@ -583,7 +583,6 @@ void NewGRFSpriteLayout::Allocate(uint num_sprites)
*/
void NewGRFSpriteLayout::AllocateRegisters()
{
assert(!this->seq.empty());
assert(this->registers.empty());
this->registers.resize(1 + this->seq.size(), {}); // 1 for the ground sprite