mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
[8058] Avoid use error_log in non-scripting DLL code. Author: NoFantasy
--HG-- branch : trunk
This commit is contained in:
@@ -2266,7 +2266,7 @@ void Creature::SetInCombatWithZone()
|
||||
{
|
||||
if (!CanHaveThreatList())
|
||||
{
|
||||
error_log("Creature entry %u call SetInCombatWithZone but creature cannot have threat list.", GetEntry());
|
||||
sLog.outError("Creature entry %u call SetInCombatWithZone but creature cannot have threat list.", GetEntry());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2274,7 +2274,7 @@ void Creature::SetInCombatWithZone()
|
||||
|
||||
if (!pMap->IsDungeon())
|
||||
{
|
||||
error_log("Creature entry %u call SetInCombatWithZone for map (id: %u) that isn't an instance.", GetEntry(), pMap->GetId());
|
||||
sLog.outError("Creature entry %u call SetInCombatWithZone for map (id: %u) that isn't an instance.", GetEntry(), pMap->GetId());
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user