Skip to content

Commit fd41d7b

Browse files
committed
reimplement: SHC_3BB0A8C1_0x00479F30 fix loop
1 parent a6b6e39 commit fd41d7b

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

src/OpenSHC/Audio/mss/SoundSystem/deactivateSoundFromMenuFuncUnk.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,10 @@ namespace Audio {
1919
MACRO_CALL_MEMBER(SoundSystem_Func::endSoundStream, this)(i);
2020
}
2121

22-
int* piVar1 = this->sampleSoundIndex_0x20c + 1;
23-
unsigned int iVar3 = 32;
24-
do {
25-
AIL_end_sample((HSAMPLE)piVar1[-0x20]);
26-
*piVar1 = 0;
27-
piVar1 = piVar1 + 1;
28-
iVar3 = iVar3 + -1;
29-
} while (iVar3 != 1);
22+
for (int i = 0; i < 31; ++i) {
23+
AIL_end_sample(this->sample_0x190[i]);
24+
this->sampleSoundIndex_0x20c[i + 1] = 0;
25+
}
3026

3127
for (int i = 1; i < this->loadedSoundsCountAndIndex_0x316c; ++i) {
3228
this->soundFileCurrSampleNum_0x28c[i] = -1;

0 commit comments

Comments
 (0)