Core/Player: Prevent a crash in CastedCreatureOrGO and add an assertion to KilledMonster
This commit is contained in:
1 parent
e5945402ad
commit
8ac5b3b7d6
5 files changed
+13
-5
No files matched your search
@@ -12722,7 +12722,7 @@ void Unit::UpdateSpeed(UnitMoveType mtype, bool forced)
|
||||
// to help prevent pet from lagging behind and despawning
|
||||
float dist = GetDistance(pOwner);
|
||||
float base_rate = 1.00f; // base speed is 100% of owner speed
|
||||
|
||||
|
||||
if (dist < 5)
|
||||
dist = 5;
|
||||
|
||||
|
||||
Reference in new issue
Block a user