|
|
@ -70,7 +70,7 @@ df::construction * Constructions::getConstruction(const int32_t index)
|
|
|
|
|
|
|
|
|
|
|
|
df::construction * Constructions::findAtTile(df::coord pos)
|
|
|
|
df::construction * Constructions::findAtTile(df::coord pos)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
for (auto it = begin (world->constructions); it != end (world->constructions); ++it) {
|
|
|
|
for (auto it = world->constructions.begin(); it != world->constructions.end(); ++it) {
|
|
|
|
if ((*it)->pos == pos)
|
|
|
|
if ((*it)->pos == pos)
|
|
|
|
return *it;
|
|
|
|
return *it;
|
|
|
|
}
|
|
|
|
}
|
|
|
|