aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2015-02-16 18:41:44 +0100
committerShauren <shauren.trinity@gmail.com>2015-02-16 18:41:44 +0100
commit3d2d8bd0dcb3055e63d705b56952ac9008798498 (patch)
treef45fb8291b80e726fc9e4aa7729d74b83baab85a
parent709275eecbbe073cd9b9170debfcef476ef66a6c (diff)
Core/Objects: Fixed Object::RemoveGuidValue only clearing low part of the guid
-rw-r--r--src/server/game/Entities/Object/Object.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/game/Entities/Object/Object.cpp b/src/server/game/Entities/Object/Object.cpp
index 335df6505a6..761f5702441 100644
--- a/src/server/game/Entities/Object/Object.cpp
+++ b/src/server/game/Entities/Object/Object.cpp
@@ -1058,8 +1058,7 @@ bool Object::RemoveGuidValue(uint16 index, ObjectGuid const& value)
ASSERT(index + 3 < m_valuesCount || PrintIndexError(index, true));
if (!value.IsEmpty() && *((ObjectGuid*)&(m_uint32Values[index])) == value)
{
- m_uint32Values[index] = 0;
- m_uint32Values[index + 1] = 0;
+ ((ObjectGuid*)&(m_uint32Values[index]))->Clear();
_changesMask.SetBit(index);
_changesMask.SetBit(index + 1);
_changesMask.SetBit(index + 2);