{"comment":{"url":"https://api.github.com/repos/cmangos/mangos-wotlk/comments/9330493","html_url":"https://github.com/cmangos/mangos-wotlk/commit/fdc35fb9b82272c221d3d01d32a6afbdbe0193cc#commitcomment-9330493","id":9330493,"user":{"login":"evil-at-wow","id":1056721,"avatar_url":"https://avatars.githubusercontent.com/u/1056721?v=3","gravatar_id":"","url":"https://api.github.com/users/evil-at-wow","html_url":"https://github.com/evil-at-wow","followers_url":"https://api.github.com/users/evil-at-wow/followers","following_url":"https://api.github.com/users/evil-at-wow/following{/other_user}","gists_url":"https://api.github.com/users/evil-at-wow/gists{/gist_id}","starred_url":"https://api.github.com/users/evil-at-wow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evil-at-wow/subscriptions","organizations_url":"https://api.github.com/users/evil-at-wow/orgs","repos_url":"https://api.github.com/users/evil-at-wow/repos","events_url":"https://api.github.com/users/evil-at-wow/events{/privacy}","received_events_url":"https://api.github.com/users/evil-at-wow/received_events","type":"User","site_admin":false},"position":49,"line":2871,"path":"src/game/Level2.cpp","commit_id":"fdc35fb9b82272c221d3d01d32a6afbdbe0193cc","created_at":"2015-01-18T15:12:05Z","updated_at":"2015-01-18T15:12:05Z","body":"Yes, the second candidate is the intended one, but that's not what the compiler wants. I have no idea why the compiler wants to use a default constructor though. Perhaps a compiler bug?\r\n\r\nI'm guessing the pointer is what bugs it, so could you try something like the following instead of the block above?\r\n```\r\nstd::list<Creature*> waypoints;\r\nconst WorldObject* worldobject = player;\r\nMaNGOS::AllCreaturesOfEntryInRangeCheck check(worldobject, VISUAL_WAYPOINT, SIZE_OF_GRIDS);\r\nMaNGOS::CreatureListSearcher<MaNGOS::AllCreaturesOfEntryInRangeCheck> searcher(waypoints, check);\r\nCell::VisitGridObjects(player, searcher, SIZE_OF_GRIDS);\r\n```"}}