mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +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:
+3
-1
@@ -3988,7 +3988,9 @@ bool ZoneDatabase::SummonAllCharacterCorpses(
|
||||
}
|
||||
}
|
||||
|
||||
CharacterCorpsesRepository::ReplaceMany(*this, l);
|
||||
if (!l.empty()) {
|
||||
CharacterCorpsesRepository::ReplaceMany(*this, l);
|
||||
}
|
||||
|
||||
return corpse_count > 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user