mirror of https://github.com/OpenTTD/OpenTTD
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
parent
13944222f3
commit
ed57b9c297
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue