///////////////////////////////////////////////////// Misc
| 67 | } |
| 68 | ////////////////////////////////////////////////////////// Misc |
| 69 | void Unitset::setClientInfo(void *clientInfo, int index) const |
| 70 | { |
| 71 | if ( index < 0 || index > 255 ) |
| 72 | return; |
| 73 | |
| 74 | // Assign the client info to all units in the set |
| 75 | for (auto &u : *this) |
| 76 | { |
| 77 | u->setClientInfo(clientInfo, index); |
| 78 | } |
| 79 | } |
| 80 | void Unitset::setClientInfo(int clientInfo, int index) const |
| 81 | { |
| 82 | this->setClientInfo((void*)clientInfo, index); |
no outgoing calls
no test coverage detected