mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-11 03:42:24 +00:00
[Bug Fix] Add safety check to SummonAllCharacterCorpses. (#4107)
Should prevent an empty vector from being passed to the repository.
This commit is contained in:
parent
32c5d4d9f6
commit
a221e50cc2
@ -3988,7 +3988,9 @@ bool ZoneDatabase::SummonAllCharacterCorpses(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CharacterCorpsesRepository::ReplaceMany(*this, l);
|
if (!l.empty()) {
|
||||||
|
CharacterCorpsesRepository::ReplaceMany(*this, l);
|
||||||
|
}
|
||||||
|
|
||||||
return corpse_count > 0;
|
return corpse_count > 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user