We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 816a868 commit 2043db3Copy full SHA for 2043db3
1 file changed
sound.cpp
@@ -122,7 +122,7 @@ bool loadMusicInfo(string dir) {
122
for(int i=0; i<size(dir); i++) if(dir[i] == '/' || dir[i] == '\\')
123
dir2 = dir.substr(0, i+1);
124
char buf[1000];
125
- while(fgets(buf, 800, f) > 0) {
+ while(fgets(buf, 800, f) != NULL) {
126
for(int i=0; buf[i]; i++) if(buf[i] == 10 || buf[i] == 13) buf[i] = 0;
127
if(buf[0] == '[' && buf[3] == ']') {
128
int id = (buf[1] - '0') * 10 + buf[2] - '0';
0 commit comments