mirror of
https://github.com/edubart/otclient.git
synced 2025-05-01 10:09:21 +02:00
fix a little thing
This commit is contained in:
parent
c40b827828
commit
7ef92bb0ac
@ -50,7 +50,8 @@ TexturePtr TextureManager::get(const std::string& textureFile)
|
|||||||
else
|
else
|
||||||
texture = it->second.lock();
|
texture = it->second.lock();
|
||||||
}
|
}
|
||||||
else { // load texture
|
|
||||||
|
if(!texture) { // load texture
|
||||||
// currently only png textures are supported
|
// currently only png textures are supported
|
||||||
if(!boost::ends_with(textureFile, ".png")) {
|
if(!boost::ends_with(textureFile, ".png")) {
|
||||||
error("Unable to load texture %s, file format no supported.", textureFile.c_str());
|
error("Unable to load texture %s, file format no supported.", textureFile.c_str());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user