Skip to content

Commit fbaadff

Browse files
committed
Core/Combat: GetThreatListPlayerCount reading GetOwner instead of GetVictim
1 parent 67ac5e4 commit fbaadff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/server/game/Combat/ThreatManager.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ uint32 ThreatManager::GetThreatListPlayerCount(bool includeOffline/* = false*/)
288288
return uint32(_sortedThreatList->size());
289289
uint32 returnValue = 0;
290290
for (ThreatReference const* ref : *_sortedThreatList)
291-
if (ref->IsAvailable() && ref->GetOwner()->GetTypeId() == TYPEID_PLAYER)
291+
if (ref->IsAvailable() && ref->GetVictim()->GetTypeId() == TYPEID_PLAYER)
292292
++returnValue;
293293
return returnValue;
294294
}

0 commit comments

Comments
 (0)