off-by-one in NMR count

This commit is contained in:
Enno Rehling 2017-07-16 11:24:16 +02:00
parent 2c356103e2
commit b6f40148d7
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
function nmr_check(maxnmrs)
local nmrs = get_nmrs(1)
if nmrs >= maxnmrs then
if nmrs > maxnmrs then
eressea.log.error("Shit. More than " .. maxnmrs .. " factions with 1 NMR (" .. nmrs .. ")")
write_summary()
return -1