diff --git a/include/patchlevel.h b/include/patchlevel.h index 130ae8beb..02d5573e2 100644 --- a/include/patchlevel.h +++ b/include/patchlevel.h @@ -17,7 +17,7 @@ * Incrementing EDITLEVEL can be used to force invalidation of old bones * and save files. */ -#define EDITLEVEL 100 +#define EDITLEVEL 101 /* * Development status possibilities. diff --git a/src/mdlib.c b/src/mdlib.c index 18db66993..740c3ecb1 100644 --- a/src/mdlib.c +++ b/src/mdlib.c @@ -306,11 +306,9 @@ make_version(void) for (i = 1; artifact_names[i]; i++) continue; version.entity_count = (unsigned long) (i - 1); - for (i = 1; objects[i].oc_class != ILLOBJ_CLASS; i++) - continue; + i = NUM_OBJECTS; version.entity_count = (version.entity_count << 12) | (unsigned long) i; - for (i = 0; mons[i].mlet; i++) - continue; + i = NUMMONS; version.entity_count = (version.entity_count << 12) | (unsigned long) i; /* * Value used for compiler (word size/field alignment/padding) check.