fixing bugs
This commit is contained in:
1 parent
c657c91851
commit
edbae32ba7
2 files changed
+6
-4
No files matched your search
@@ -630,7 +630,11 @@ cardinal TTextureListClass::AddTexture(const std::string& fileName)
|
||||
|
||||
cardinal TTextureListClass::AddTexture(const std::string& fileName, std::string texName)
|
||||
{
|
||||
|
||||
if (texName == "")
|
||||
{
|
||||
texName = GetFileName(fileName);
|
||||
}
|
||||
|
||||
std::string fullFileName = ST::PathToResources + fileName;
|
||||
|
||||
std::string realFileName;
|
||||
@@ -645,8 +649,6 @@ cardinal TTextureListClass::AddTexture(const std::string& fileName, std::string
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return AddTextureDirectly(realFileName, texName);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user