| 666 | } |
| 667 | |
| 668 | static bool isLinkedToPile(df::building_siegeenginest *bld, df::building_stockpilest *pile) |
| 669 | { |
| 670 | CHECK_NULL_POINTER(bld); |
| 671 | CHECK_NULL_POINTER(pile); |
| 672 | |
| 673 | auto engine = find_engine(bld); |
| 674 | |
| 675 | return engine && engine->stockpiles.count(pile->id); |
| 676 | } |
| 677 | |
| 678 | static bool addStockpileLink(df::building_siegeenginest *bld, df::building_stockpilest *pile) |
| 679 | { |
nothing calls this directly
no test coverage detected