mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-20 13:25:10 +00:00
avoid using auto variables for windows compilation
This commit is contained in:
@@ -47,7 +47,7 @@ namespace RAY {
|
||||
{
|
||||
if (Image::_modelsCache.find(path) == Image::_modelsCache.end())
|
||||
Image::_modelsCache.emplace(path, std::shared_ptr<::Image>(
|
||||
new ::Image(LoadImage(path.c_str())), [](auto p) {
|
||||
new ::Image(LoadImage(path.c_str())), [](::Image *p) {
|
||||
UnloadImage(*p);
|
||||
delete p;
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user