From ed57b9c29743a5ff666bf7ef5f1f2d5d0e4f2dc7 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Mon, 17 Feb 2025 03:29:56 +0000 Subject: [PATCH] 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. --- src/newgrf_commons.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/newgrf_commons.cpp b/src/newgrf_commons.cpp index 7bd895c39d..ccd6603c06 100644 --- a/src/newgrf_commons.cpp +++ b/src/newgrf_commons.cpp @@ -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