Skip to content

Commit

Permalink
Core/Scripts: added log message for PlayOneShotAnimKitId invalid entries
Browse files Browse the repository at this point in the history
  • Loading branch information
Lopfest committed Feb 21, 2016
1 parent facdc62 commit a557325
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/game/Entities/Unit/Unit.cpp
Expand Up @@ -13432,7 +13432,10 @@ void Unit::SendDurabilityLoss(Player* receiver, uint32 percent)
void Unit::PlayOneShotAnimKitId(uint16 animKitId)
{
if (!sAnimKitStore.LookupEntry(animKitId))
{
TC_LOG_ERROR("entities.unit", "Unit::PlayOneShotAnimKitId using invalid AnimKit ID: %u", animKitId);
return;
}

WorldPackets::Misc::PlayOneShotAnimKit data;
data.Unit = GetGUID();
Expand Down

0 comments on commit a557325

Please sign in to comment.