Audio/Sound: Replace error check by assert

Former-commit-id: 76192feaa3a29342b5456a97f660719714be3fe6
This commit is contained in:
Lynix 2016-04-17 18:09:22 +02:00
parent ba176af5cd
commit b87a8b3f25
1 changed files with 1 additions and 7 deletions

View File

@ -42,13 +42,7 @@ namespace Nz
UInt32 Sound::GetDuration() const
{
#if NAZARA_AUDIO_SAFE
if (!m_buffer)
{
NazaraError("Invalid sound buffer");
return 0;
}
#endif
NazaraAssert(m_buffer, "Invalid sound buffer");
return m_buffer->GetDuration();
}