Commit 6d18f730 authored by Thomas Eppers's avatar Thomas Eppers
Browse files

replaces find_if with find in maploader

parent 63091715
......@@ -573,7 +573,7 @@ namespace gdw {
}
void maploader::set_agent_pos(unsigned long long int entityID, const glm::vec3 &pos) {
auto found = std::find_if(entityAgent.begin(),entityAgent.end(),[&](const auto&a){return a.second == entityID;});
auto found = entityAgent.find(entityID);
if(found != entityAgent.end())
set_agent_pos(found->first, pos);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment