diff --git a/code/nel/tools/3d/build_interface/main.cpp b/code/nel/tools/3d/build_interface/main.cpp index 1f8d50997..ae317269b 100644 --- a/code/nel/tools/3d/build_interface/main.cpp +++ b/code/nel/tools/3d/build_interface/main.cpp @@ -367,7 +367,7 @@ int main(int nNbArg, char **ppArgs) if (outTga.open(fmtName)) { std::string ext; - if (toLower(fmtName.find(".png")) != string::npos) + if (toLower(fmtName).find(".png") != string::npos) { ext = "png"; GlobalTexture.writePNG (outTga, 32);