Sound pointers worden gedelete
This commit is contained in:
@@ -48,3 +48,11 @@ Sound* SoundSystem::GetSound(unsigned int inID)
|
||||
return nullptr;
|
||||
return sounds[inID];
|
||||
}
|
||||
|
||||
void SoundSystem::UnloadSound(unsigned int inID)
|
||||
{
|
||||
if (inID > sounds.size())
|
||||
return;
|
||||
delete sounds[inID];
|
||||
// sounds.erase[inID];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user