* Fix yet another bug introduced in r3047 (the game would hang in an infinite loop because of failing to increase the iterators)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3049 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2007-12-13 23:54:28 +00:00
parent ff44e8c84c
commit 992ee8583a
1 changed files with 6 additions and 1 deletions

View File

@ -215,8 +215,13 @@ void sound_Update( void )
// If one did, the state returned is useless. So instead of
// using it continue with the next sample.
err = sound_GetError();
if (err != AL_NO_ERROR)
if (err == AL_NO_ERROR)
{
// Move to the next object
previous = node;
node = node->next;
continue;
}
switch (state)
{