Mercurial > mm7
comparison AudioPlayer.cpp @ 28:739d8f3b50f9
ReleaseSoundData fix
author | zipi@zipi-PC |
---|---|
date | Sat, 19 Jan 2013 16:15:06 +0000 |
parents | 352b15291822 |
children | 1faa29fd4c2d |
comparison
equal
deleted
inserted
replaced
27:7fb7febacb46 | 28:739d8f3b50f9 |
---|---|
2523 v2 = (char *)&pSounds[0].pSoundData; | 2523 v2 = (char *)&pSounds[0].pSoundData; |
2524 while ( *(void **)v2 != _this ) | 2524 while ( *(void **)v2 != _this ) |
2525 { | 2525 { |
2526 v2 += 128; | 2526 v2 += 128; |
2527 ++pID; | 2527 ++pID; |
2528 if ( (signed int)v2 >= (signed int)&pAudioPlayer->p3DSamples[6].field_8 ) | 2528 if ( v2 > (void *)&pSounds[2999].pSoundData)//(signed int)&pAudioPlayer->p3DSamples[6].field_8 ) |
2529 return; | 2529 return; |
2530 } | 2530 } |
2531 pAllocator->FreeChunk(_this); | 2531 pAllocator->FreeChunk(_this); |
2532 memset(&pSounds[pID], 0, 0x80u); | 2532 memset(&pSounds[pID], 0, 0x80u); |
2533 } | 2533 } |