fix soh otr asset building not detecting textures (#2702)

This commit is contained in:
Adam Bird
2023-04-13 18:37:10 -04:00
committed by GitHub
parent 92fa54c3f9
commit 660c3ec3b0
3 changed files with 6 additions and 3 deletions

View File

@@ -119,8 +119,8 @@ static void ExporterProgramEnd()
if (splitPath.size() >= 3)
{
const std::string& extension = splitPath.at(splitPath.size() - 1);
const std::string& format = splitPath.at(splitPath.size() - 2);
const std::string extension = splitPath.at(splitPath.size() - 1);
const std::string format = splitPath.at(splitPath.size() - 2);
splitPath.pop_back();
splitPath.pop_back();
std::string afterPath = std::accumulate(splitPath.begin(), splitPath.end(), std::string(""));