fixing limit so we can detect if a list is the same size as the limit or truncated

This commit is contained in:
GullCode
2023-05-04 15:19:13 +02:00
parent 68fc2a143f
commit 1b18b3ac45

View File

@@ -229,7 +229,7 @@ bool load_freqman_file_ex(std::string& file_stem, freqman_db& db, bool load_freq
{ {
db.push_back({ frequency_a, frequency_b, description, type , modulation , bandwidth , step , tone }); db.push_back({ frequency_a, frequency_b, description, type , modulation , bandwidth , step , tone });
n++; n++;
if (n >= FREQMAN_MAX_PER_FILE) return true; if (n > FREQMAN_MAX_PER_FILE) return true;
} }
line_start = line_end + 1; line_start = line_end + 1;