Codechange: use string/fmt instead of printf for ShowInfo(F)
This commit is contained in:
@@ -1606,7 +1606,7 @@ DEF_CONSOLE_CMD(ConDebugLevel)
|
||||
if (argc == 1) {
|
||||
IConsolePrint(CC_DEFAULT, "Current debug-level: '{}'", GetDebugString());
|
||||
} else {
|
||||
SetDebugString(argv[1], [](const char *err) { IConsolePrint(CC_ERROR, std::string(err)); });
|
||||
SetDebugString(argv[1], [](const std::string &err) { IConsolePrint(CC_ERROR, err); });
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user