From 2043db3e0bf8df7c95d51560869ffd3fdccf9675 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Mon, 26 Jun 2017 22:19:57 +0300 Subject: [PATCH] Fix compilation error You cannot perform ordered comparison on pointer and integer --- sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound.cpp b/sound.cpp index 5364cdb7..d4b20f4b 100644 --- a/sound.cpp +++ b/sound.cpp @@ -122,7 +122,7 @@ bool loadMusicInfo(string dir) { for(int i=0; i 0) { + while(fgets(buf, 800, f) != NULL) { for(int i=0; buf[i]; i++) if(buf[i] == 10 || buf[i] == 13) buf[i] = 0; if(buf[0] == '[' && buf[3] == ']') { int id = (buf[1] - '0') * 10 + buf[2] - '0';