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())
|
if (Image::_modelsCache.find(path) == Image::_modelsCache.end())
|
||||||
Image::_modelsCache.emplace(path, std::shared_ptr<::Image>(
|
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);
|
UnloadImage(*p);
|
||||||
delete p;
|
delete p;
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ namespace RAY::Drawables::Drawables3D {
|
|||||||
{
|
{
|
||||||
if (Model::_modelsCache.find(path) == Model::_modelsCache.end())
|
if (Model::_modelsCache.find(path) == Model::_modelsCache.end())
|
||||||
Model::_modelsCache.emplace(path, std::shared_ptr<::Model>(
|
Model::_modelsCache.emplace(path, std::shared_ptr<::Model>(
|
||||||
new ::Model(LoadModel(path.c_str())), [](auto p) {
|
new ::Model(LoadModel(path.c_str())), [](::Model *p) {
|
||||||
UnloadModel(*p);
|
UnloadModel(*p);
|
||||||
delete p;
|
delete p;
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user