mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-10 01:52:25 +00:00
Fix error with previous commit
This commit is contained in:
parent
0513f1ad5d
commit
f380519803
@ -537,7 +537,7 @@ int HateList::AreaRampage(Mob *caster, Mob *target, int count, ExtraAttackOption
|
|||||||
|
|
||||||
int hit_count = 0;
|
int hit_count = 0;
|
||||||
auto it = list.begin();
|
auto it = list.begin();
|
||||||
while (it != list.end() && (hit_count == -1 || hit_count < count)) {
|
while (it != list.end() && (count == -1 || hit_count < count)) {
|
||||||
struct_HateList *h = (*it);
|
struct_HateList *h = (*it);
|
||||||
if (h && h->entity_on_hatelist && h->entity_on_hatelist != caster) {
|
if (h && h->entity_on_hatelist && h->entity_on_hatelist != caster) {
|
||||||
if (caster->CombatRange(h->entity_on_hatelist)) {
|
if (caster->CombatRange(h->entity_on_hatelist)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user