project_files/frontlib/model/mapcfg.c
changeset 7497 7e1d72fc03c7
parent 7316 f7b49b2c5d84
child 10017 de822cd3df3a
--- a/project_files/frontlib/model/mapcfg.c	Sun Aug 12 23:51:36 2012 +0200
+++ b/project_files/frontlib/model/mapcfg.c	Wed Aug 15 23:40:10 2012 +0200
@@ -46,11 +46,13 @@
 				if(!log_e_if(!fgets(out->theme, sizeof(out->theme), file), "Error reading theme from %s", path)) {
 					removeNewline(out->theme);
 					char buf[64];
-					if(!log_e_if(!fgets(buf, sizeof(buf), file), "Error reading hoglimit from %s", path)) {
+					if(fgets(buf, sizeof(buf), file)) {
 						removeNewline(buf);
 						errno = 0;
 						out->hogLimit = strtol(buf, NULL, 10);
 						result = !log_e_if(errno, "Invalid hoglimit in %s: %i", path, buf);
+					} else {
+						result = 0;
 					}
 				}
 				fclose(file);