diff --git a/code/ObjExporter.cpp b/code/ObjExporter.cpp index c1a667744..82f1c98c0 100644 --- a/code/ObjExporter.cpp +++ b/code/ObjExporter.cpp @@ -125,7 +125,7 @@ std::string ObjExporter :: GetMaterialLibName() std::string ObjExporter :: GetMaterialLibFileName() { // Remove existing .obj file extention so that the final material file name will be fileName.mtl and not fileName.obj.mtl - size_t lastdot = filename.find_last_of("."); + size_t lastdot = filename.find_last_of('.'); if (lastdot != std::string::npos) filename = filename.substr(0, lastdot);