diff --git a/src/epanet.c b/src/epanet.c index ff56e200..52c5a5ad 100644 --- a/src/epanet.c +++ b/src/epanet.c @@ -4554,7 +4554,7 @@ int DLLEXPORT EN_loadpatternfile(EN_Project p, const char *filename, const char while (fgets(line, sizeof(line), file) != NULL) { // Skip lines that don't contain valid numbers - if (!getfloat(line, &value) continue; + if (!getfloat(line, &value)) continue; // Resize multiplier array if it's full if (len % CHUNK == 0) {