From f2d07e5c6987ca68f9dccb83b1128176fc3f139f Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Wed, 5 Apr 2023 10:31:57 -0400 Subject: [PATCH] [Cleanup] Remove unnecessary break in while loop in Mob::AddToHateList() (#3219) # Notes - This is unnecessary and breaks the loop for no reason. --- zone/attack.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/zone/attack.cpp b/zone/attack.cpp index e1584c19b..6a92837fd 100644 --- a/zone/attack.cpp +++ b/zone/attack.cpp @@ -3023,8 +3023,6 @@ void Mob::AddToHateList(Mob* other, int64 hate /*= 0*/, int64 damage /*= 0*/, bo hate_list.AddEntToHateList(owner_, 0, 0, false, true); owner_->AddAutoXTarget(this); // this was being called on dead/out-of-zone clients } - - break; } }