* 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-861f7616d084master
parent
ff44e8c84c
commit
992ee8583a
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue