mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
fix: CLogger's ELogMethod is now inside the class and does not use names that are vulnerable to macro destruction (fixes a conflict with Windows system header's #define ERROR)
This was SVN commit r5532.
This commit is contained in:
@@ -69,7 +69,7 @@ bool CObjectBase::Load(const char* filename)
|
||||
|
||||
if (root.GetNodeName() != el_actor)
|
||||
{
|
||||
LOG(ERROR, LOG_CATEGORY, "Invalid actor format (unrecognised root element '%s')", XeroFile.GetElementString(root.GetNodeName()).c_str());
|
||||
LOG(CLogger::Error, LOG_CATEGORY, "Invalid actor format (unrecognised root element '%s')", XeroFile.GetElementString(root.GetNodeName()).c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -198,7 +198,7 @@ bool CObjectBase::Load(const char* filename)
|
||||
|
||||
if (currentGroup->size() == 0)
|
||||
{
|
||||
LOG(ERROR, LOG_CATEGORY, "Actor group has zero variants ('%s')", filename);
|
||||
LOG(CLogger::Error, LOG_CATEGORY, "Actor group has zero variants ('%s')", filename);
|
||||
}
|
||||
|
||||
++currentGroup;
|
||||
|
||||
Reference in New Issue
Block a user