migrate every factory query off BuildingSystem onto the free functions
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "catch.hpp"
|
||||
#include "FactoryQueries.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
@@ -214,7 +215,7 @@ TEST_CASE("Shipyard: spawns a second ship after materials replenished", "[shipya
|
||||
// Verify the shipyard production field cleared (i.e. the cycle completed
|
||||
// and is not still running).
|
||||
bool productionCleared = false;
|
||||
for (const Building& b : sim.getBuildings().getAllBuildings())
|
||||
for (const Building& b : getAllBuildings(sim.getFactoryState()))
|
||||
{
|
||||
if (b.id == yardId)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user