Fix typo
This commit is contained in:
parent
7a933aec76
commit
7f53534a1f
@ -15,7 +15,7 @@ namespace Textures {
|
|||||||
m_is_loading.insert(path);
|
m_is_loading.insert(path);
|
||||||
}
|
}
|
||||||
auto texture = std::make_shared<sf::Texture>();
|
auto texture = std::make_shared<sf::Texture>();
|
||||||
if (!texture->loadFromFile(path)) {
|
if (!texture->loadFromFile(path.string())) {
|
||||||
throw std::invalid_argument("Unable to load cover image : "+path.string());
|
throw std::invalid_argument("Unable to load cover image : "+path.string());
|
||||||
}
|
}
|
||||||
texture->setSmooth(true);
|
texture->setSmooth(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user