*Add some debug info to find crash bug caused by player Notify()
--HG-- branch : trunk
This commit is contained in:
1 parent
16d3c8378f
commit
d2c30bd9f0
2 files changed
+13
No files matched your search
@@ -73,6 +73,16 @@ PlayerVisibilityNotifier::Notify()
|
||||
|
||||
if( i_data.HasData() )
|
||||
{
|
||||
uint32 entry = 0, map;
|
||||
float x,y;
|
||||
if(!i_visibleNow.empty())
|
||||
{
|
||||
entry = (*i_visibleNow.begin())->GetEntry();
|
||||
map = (*i_visibleNow.begin())->GetMapId();
|
||||
x = (*i_visibleNow.begin())->GetPositionX();
|
||||
y = (*i_visibleNow.begin())->GetPositionY();
|
||||
}
|
||||
|
||||
// send create/outofrange packet to player (except player create updates that already sent using SendUpdateToPlayer)
|
||||
WorldPacket packet;
|
||||
i_data.BuildPacket(&packet);
|
||||
|
||||
Reference in new issue
Block a user