[Bug Fix] Add safety check to SummonAllCharacterCorpses. (#4107)

Should prevent an empty vector from being passed to the repository.
This commit is contained in:
Fryguy authored and GitHub committed 2024-02-20 22:21:56 -06:00
1 parent 32c5d4d9f6
commit a221e50cc2
1 file changed
+3 -1
+3 -1
View File
@@ -3988,7 +3988,9 @@ bool ZoneDatabase::SummonAllCharacterCorpses(
}
}
CharacterCorpsesRepository::ReplaceMany(*this, l);
if (!l.empty()) {
CharacterCorpsesRepository::ReplaceMany(*this, l);
}
return corpse_count > 0;
}