[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
2024-02-20 23:21:56 -05:00
committed by GitHub
parent 32c5d4d9f6
commit a221e50cc2
+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;
}