Core/Battleground: fixed typo
* and fixed some warnings
This commit is contained in:
1 parent
70c82a385f
commit
14bbe3e2e9
8 files changed
+16
-18
No files matched your search
@@ -343,7 +343,7 @@ void Object::BuildMovementUpdate(ByteBuffer* data, uint16 flags) const
|
||||
if (isType(TYPEMASK_UNIT))
|
||||
unit = ToUnit();
|
||||
else
|
||||
object = ((WorldObject*)this);
|
||||
object = (WorldObject const*)this;
|
||||
|
||||
*data << uint16(flags); // update flags
|
||||
|
||||
@@ -568,7 +568,7 @@ uint32 Object::GetUpdateFieldData(Player const* target, uint32*& flags) const
|
||||
case TYPEID_ITEM:
|
||||
case TYPEID_CONTAINER:
|
||||
flags = ItemUpdateFieldFlags;
|
||||
if (((Item*)this)->GetOwnerGUID() == target->GetGUID())
|
||||
if (((Item const*)this)->GetOwnerGUID() == target->GetGUID())
|
||||
visibleFlag |= UF_FLAG_OWNER | UF_FLAG_ITEM_OWNER;
|
||||
break;
|
||||
case TYPEID_UNIT:
|
||||
@@ -594,7 +594,7 @@ uint32 Object::GetUpdateFieldData(Player const* target, uint32*& flags) const
|
||||
break;
|
||||
case TYPEID_DYNAMICOBJECT:
|
||||
flags = DynamicObjectUpdateFieldFlags;
|
||||
if (((DynamicObject*)this)->GetCasterGUID() == target->GetGUID())
|
||||
if (ToDynObject()->GetCasterGUID() == target->GetGUID())
|
||||
visibleFlag |= UF_FLAG_OWNER;
|
||||
break;
|
||||
case TYPEID_CORPSE:
|
||||
|
||||
Reference in new issue
Block a user