mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Core/Misc: Build fix
This commit is contained in:
@@ -2522,7 +2522,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
||||
if (IsCreature(*itr))
|
||||
{
|
||||
if (e.action.animKit.type == 0)
|
||||
(*itr)->ToCreature()->PlayOneShotAnimKitId(e.action.animKit.animKit);
|
||||
(*itr)->ToCreature()->PlayOneShotAnimKit(e.action.animKit.animKit);
|
||||
else if (e.action.animKit.type == 1)
|
||||
(*itr)->ToCreature()->SetAIAnimKitId(e.action.animKit.animKit);
|
||||
else if (e.action.animKit.type == 2)
|
||||
|
||||
@@ -859,7 +859,7 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e)
|
||||
|
||||
if (e.action.animKit.type > 3)
|
||||
{
|
||||
TC_LOG_ERROR("sql.sql", "SmartAIMgr: Entry " SI64FMTD " SourceType %u Event %u Action %u uses invalid AnimKit type %u, skipped.", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType(), e.action.animKit.type);
|
||||
TC_LOG_ERROR("sql.sql", "SmartAIMgr: Entry %u SourceType %u Event %u Action %u uses invalid AnimKit type %u, skipped.", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType(), e.action.animKit.type);
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -1786,7 +1786,7 @@ class TC_GAME_API SmartAIMgr
|
||||
{
|
||||
if (!sAnimKitStore.LookupEntry(entry))
|
||||
{
|
||||
TC_LOG_ERROR("sql.sql", "SmartAIMgr: Entry " SI64FMTD " SourceType %u Event %u Action %u uses non-existent AnimKit entry %u, skipped.", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType(), entry);
|
||||
TC_LOG_ERROR("sql.sql", "SmartAIMgr: Entry %u SourceType %u Event %u Action %u uses non-existent AnimKit entry %u, skipped.", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType(), entry);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user