Core/Misc: Fix some static analysis issues
Add some asserts and additional NULL checks as sanity checks.
This commit is contained in:
1 parent
bacfbdc4ee
commit
f47962f670
4 files changed
+16
-11
No files matched your search
@@ -350,6 +350,7 @@ void Object::BuildMovementUpdate(ByteBuffer* data, uint16 flags) const
|
||||
// 0x20
|
||||
if (flags & UPDATEFLAG_LIVING)
|
||||
{
|
||||
ASSERT(unit);
|
||||
unit->BuildMovementPacket(data);
|
||||
|
||||
*data << unit->GetSpeed(MOVE_WALK)
|
||||
|
||||
Reference in new issue
Block a user