1
0
Fork 0

Fix faa845398f: Crash when loading tile layout with no building sprites.

Tile layouts are permitted to have no building sprites, therefore the test for an empty sequence of sprites is not valid.
pull/13589/head
Peter Nelson 2025-02-17 01:11:40 +00:00
parent 13944222f3
commit a40d13a3e6
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
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