| 20 | BWAssert(false);\ |
| 21 | } |
| 22 | void findAndRemoveType(Unitset &s, UnitType t) |
| 23 | { |
| 24 | auto it = std::find_if(s.begin(), s.end(), BWAPI::Filter::GetType == t); |
| 25 | if (it != s.end()) |
| 26 | { |
| 27 | s.erase(it); |
| 28 | } |
| 29 | else |
| 30 | { |
| 31 | BWAssert(false); |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | void TestMap1::onStart() |
| 36 | { |