Moved the check for !seqInfo.canBeUsedAsReplacement in InitializeShufflePool to exclude them before modifying either shuffle pool. (#3370)
This commit is contained in:
@@ -400,8 +400,9 @@ void AudioCollection::InitializeShufflePool() {
|
|||||||
if (shufflePoolInitialized) return;
|
if (shufflePoolInitialized) return;
|
||||||
|
|
||||||
for (auto& [seqId, seqInfo] : sequenceMap) {
|
for (auto& [seqId, seqInfo] : sequenceMap) {
|
||||||
|
if (!seqInfo.canBeUsedAsReplacement) continue;
|
||||||
const std::string cvarKey = "gAudioEditor.Excluded." + seqInfo.sfxKey;
|
const std::string cvarKey = "gAudioEditor.Excluded." + seqInfo.sfxKey;
|
||||||
if (CVarGetInteger(cvarKey.c_str(), 0) && !seqInfo.canBeUsedAsReplacement) {
|
if (CVarGetInteger(cvarKey.c_str(), 0)) {
|
||||||
excludedSequences.insert(&seqInfo);
|
excludedSequences.insert(&seqInfo);
|
||||||
} else {
|
} else {
|
||||||
includedSequences.insert(&seqInfo);
|
includedSequences.insert(&seqInfo);
|
||||||
|
|||||||
Reference in New Issue
Block a user