Use if (condition) something; else something-else; instead of if (condition) something; if (!condition) something-else;

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5329 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2008-06-25 14:01:18 +00:00
parent da0b168df3
commit 1c6ff360db
1 changed files with 2 additions and 1 deletions

View File

@ -146,10 +146,11 @@ const char* PlayList_NextSong()
{
currentSong = currentSong->next;
}
if (!currentSong)
else
{
currentSong = songList;
}
return PlayList_CurrentSong();
}