Sound pointers worden gedelete

This commit is contained in:
Aaldert
2016-06-21 14:45:41 +02:00
parent 6096e53d94
commit eadfea9d63
6 changed files with 16 additions and 9 deletions
+8
View File
@@ -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];
}