mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-21 23:58:51 -05:00
Moved the check for !seqInfo.canBeUsedAsReplacement
in InitializeShufflePool
to exclude them before modifying either shuffle pool. (#3370)
This commit is contained in:
parent
30ab8e9ed7
commit
78ffb41cd2
@ -400,8 +400,9 @@ void AudioCollection::InitializeShufflePool() {
|
||||
if (shufflePoolInitialized) return;
|
||||
|
||||
for (auto& [seqId, seqInfo] : sequenceMap) {
|
||||
if (!seqInfo.canBeUsedAsReplacement) continue;
|
||||
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);
|
||||
} else {
|
||||
includedSequences.insert(&seqInfo);
|
||||
|
Loading…
Reference in New Issue
Block a user