Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(std::list<Unit*>::iterator itr = unitList.begin(); itr != unitList.end(); itr++)
- {
- if(!GetCaster()->IsWithinDistInMap((*itr), 8))
- unitList.remove((*itr));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement