diff --git a/src/dehacked.c b/src/dehacked.c
index 1f56210ac..ae1be6da2 100644
--- a/src/dehacked.c
+++ b/src/dehacked.c
@@ -1199,7 +1199,7 @@ static void readlevelheader(MYFILE *f, INT32 num)
 				else if (fastcmp(word2, "NIGHTS")) i =  3;
 				else if (fastcmp(word2, "NIGHTSLINK")) i = 4;
 
-				if (i >= -1 && i <= 4) // -1 for no bonus. Max is 3.
+				if (i >= -1 && i <= 4) // -1 for no bonus. Max is 4.
 					mapheaderinfo[num-1]->bonustype = (SINT8)i;
 				else
 					deh_warning("Level header %d: invalid bonus type number %d", num, i);