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:
parent
b769f3bcdc
commit
095e2cc3be
@ -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());
|
||||
|
||||
|
Reference in New Issue
Block a user