navparser.cpp: avoid unnecessary std::string construction

Use %s to print string directly instead of formating, constructing std::string and using it as C string
This commit is contained in:
Unnamed 2019-04-20 13:55:48 +00:00 committed by TotallyNotElite
parent b769f3bcdc
commit 095e2cc3be

View File

@ -375,7 +375,7 @@ void initThread()
lvldir.append("/.steam/steam/steamapps/common/Team Fortress 2/tf/");
lvldir.append(lvlname);
lvldir.append(".nav");
logging::Info(format("Pathing: Nav File location: ", lvldir).c_str());
logging::Info("Pathing: Nav File location: %s", lvldir.c_str());
navfile = std::make_unique<CNavFile>(lvldir.c_str());