Core/GameEvents: removed a debugging leftover that was causing GameEvents to not launch at all

* fixed a crash when trying to cast event sources and targets into non-allowed types
This commit is contained in:
Ovahlord committed 2022-06-19 19:56:51 +02:00
1 parent 440aecfe7b
commit fbd92f5476
2 files changed
+10 -9

No files matched your search

@@ -2959,14 +2959,14 @@ std::vector<uint32> const* GameObject::GetPauseTimes() const
void GameObject::SetPathProgressForClient(float progress)
{
bool hasPendingUpdate = _changesMask.GetBit(GAMEOBJECT_DYNAMIC);
bool marked = _changesMask.GetBit(GAMEOBJECT_DYNAMIC);
uint32 dynamicFlags = GetUInt32Value(GAMEOBJECT_DYNAMIC);
dynamicFlags &= 0xFFFF; // remove high bits
dynamicFlags |= uint32(progress * 65535.0f) << 16;
UpdateUInt32Value(GAMEOBJECT_DYNAMIC, dynamicFlags);
if (!hasPendingUpdate)
if (!marked)
_changesMask.UnsetBit(GAMEOBJECT_DYNAMIC);
}