blob: 82b5c7e44a808b51987d033a5940c27703bc37dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include "BasicSound.h"
#include "SoundHandle.h"
#include "../db/assert.h"
namespace nw4hbm {
namespace snd {
void SoundHandle::DetachSound() {
if (IsAttachedSound()) {
if (mSound->mGeneralHandle == this) {
mSound->mGeneralHandle = NULL;
}
if (mSound->mTempGeneralHandle == this) {
mSound->mTempGeneralHandle = NULL;
}
}
if (mSound) {
mSound = NULL;
}
}
} // namespace snd
} // namespace nw4hbm
|