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
+1 -2
View File
@@ -30,7 +30,7 @@ Portal::Portal(const std::string &fileName,
Portal::~Portal()
{
// Model::unload(model);
// delete music;
CrystalPoint::GetSoundSystem().UnloadSound(sound_id);
}
void Portal::collide()
@@ -46,7 +46,6 @@ bool Portal::enter(float deltaTime)
{
if (delay > 3 && started)
{
delete music;
delay = 0;
return true;
}