mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-19 10:22:39 +01:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user