mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
*Fix a crash bug.
--HG-- branch : trunk
This commit is contained in:
@@ -260,7 +260,10 @@ void
|
||||
ObjectAccessor::_buildUpdateObject(Object *obj, UpdateDataMapType &update_players)
|
||||
{
|
||||
if(obj->isType(TYPEMASK_ITEM))
|
||||
_buildPacket(((Item*)obj)->GetOwner(), obj, update_players);
|
||||
{
|
||||
if(Player *owner = ((Item*)obj)->GetOwner())
|
||||
_buildPacket(owner, obj, update_players);
|
||||
}
|
||||
else
|
||||
_buildChangeObjectForPlayer((WorldObject*)obj, update_players);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user