[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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
} }