mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-08 11:51:10 +00:00
Use fmt::format for LOGERROR
The format string can be checked at compile time. It will be easier to transition to `std::format`.
This commit is contained in:
115 files changed
+631
-454
No files matched your search
@@ -92,7 +92,8 @@ std::pair<bool, CActorDef&> CObjectManager::FindActorDef(const CStrW& actorName)
|
||||
// In case of failure, load a placeholder - we want to have an actor around for hotloading.
|
||||
// (this will leave garbage actors in the object manager if loading files with typos in the name,
|
||||
// but that's unlikely to be a large memory problem).
|
||||
LOGERROR("CObjectManager::FindActorDef(): Cannot find actor '%s'", utf8_from_wstring(actorName));
|
||||
LOGERROR("CObjectManager::FindActorDef(): Cannot find actor '{}'",
|
||||
utf8_from_wstring(actorName));
|
||||
actor->LoadErrorPlaceholder(pathname);
|
||||
success = false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user