4237{
4238 LOG_INFO(
"misc",
"SafeUnitPointer::UnitDeleted !!!");
4240 {
4242 {
4243 LOG_INFO(
"misc",
"SafeUnitPointer::UnitDeleted (A1) - {}, {}, {}, {}, {}, {}, {}, {}",
4244 p->GetGUID().ToString(), p->GetMapId(), p->GetInstanceId(), p->FindMap()->GetId(), p->IsInWorld() ? 1 : 0, p->IsDuringRemoveFromWorld() ? 1 : 0, p->IsBeingTeleported() ? 1 : 0, p->isBeingLoaded() ? 1 : 0);
4246 LOG_INFO(
"misc",
"SafeUnitPointer::UnitDeleted (A2)");
4247
4248 p->GetSession()->KickPlayer("Unit deleted");
4249 }
4250 }
4252 LOG_INFO(
"misc",
"SafeUnitPointer::UnitDeleted (B1)");
4253
4255}
#define LOG_INFO(filterType__,...)
Definition: Log.h:167
Player * ToPlayer()
Definition: Object.h:195
Definition: Player.h:1046