nestboxes: Use buildings.others[NEST_BOX]

Should minimize performance impact (not that it was much before)
develop
Kelly Kinkade 2018-08-16 11:33:59 -05:00
parent 784c3b1590
commit 6275905644
1 changed files with 2 additions and 1 deletions

@ -8,6 +8,7 @@
#include "df/ui.h"
#include "df/building_nest_boxst.h"
#include "df/building_type.h"
#include "df/buildings_other_id.h"
#include "df/global_objects.h"
#include "df/item.h"
#include "df/unit.h"
@ -37,7 +38,7 @@ static void eggscan(color_ostream &out)
{
CoreSuspender suspend;
for (df::building *build : world->buildings.all)
for (df::building *build : world->buildings.other[df::buildings_other_id::NEST_BOX])
{
auto type = build->getType();
if (df::enums::building_type::NestBox == type)