attempt to fix compilation for windows

This commit is contained in:
arthur.jamet
2021-06-14 18:31:12 +02:00
parent 4dd3097c8a
commit 3bc227329d
+4 -4
View File
@@ -98,12 +98,12 @@ namespace RAY {
} else {
::ModelAnimation *animations = this->_dataLoader(path.c_str(), counter);
int animCount = *counter;
this->_cache.emplace(path, (AnimationsHolder){
std::shared_ptr<::ModelAnimation>(
AnimationsHolder holder = {std::shared_ptr<::ModelAnimation>(
animations, [this, animCount](::ModelAnimation *p) {
this->_dataUnloader(p, animCount);
}), animCount});
}),animCount};
this->_cache.emplace(path, holder);
}
return this->_cache[path].animations;
};