Commit 1ca0be39 authored by Florian Oetke's avatar Florian Oetke
Browse files

removed wierd structured binding edgecase that throw a false warning in clang

parent 6b13ef67
......@@ -107,11 +107,11 @@ namespace mirrage::asset {
void Asset_container<T>::reload() {
auto lock = std::scoped_lock{_container_mutex};
for(auto && [key, value] : _assets) {
auto last_mod = _manager._last_modified(key);
for(auto&& entry : _assets) {
auto last_mod = _manager._last_modified(entry.first);
if(last_mod > value.last_modified) {
_reload_asset(const_cast<Asset&>(value), key);
if(last_mod > entry.second.last_modified) {
_reload_asset(const_cast<Asset&>(entry.second), entry.first);
}
}
}
......
Supports Markdown
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