That code is here in load_rooms:
if (pRoomIndex->sector_type < 0 || pRoomIndex->sector_type >= SECT_MAX)
{
bug( "Fread_rooms: vnum %d has bad sector_type %d.", vnum ,
pRoomIndex->sector_type);
pRoomIndex->sector_type = 1;
}
Damned inconsistencies. Any ways, how did you define the enum list? Did you add to the very end of the list, like this:
typedef enum
{
SECT_INSIDE, SECT_CITY, SECT_FIELD, SECT_FOREST, SECT_HILLS, SECT_MOUNTAIN,
SECT_WATER_SWIM, SECT_WATER_NOSWIM, SECT_UNDERWATER, SECT_AIR, SECT_DESERT,
SECT_DUNNO, SECT_OCEANFLOOR, SECT_UNDERGROUND, SECT_LAVA, SECT_SWAMP,
SECT_MAX, SECT_MOON, SECT_MARS
} sector_types;
? If so, move SECT_MAX to the end of the list instead, like this:
typedef enum
{
SECT_INSIDE, SECT_CITY, SECT_FIELD, SECT_FOREST, SECT_HILLS, SECT_MOUNTAIN,
SECT_WATER_SWIM, SECT_WATER_NOSWIM, SECT_UNDERWATER, SECT_AIR, SECT_DESERT,
SECT_DUNNO, SECT_OCEANFLOOR, SECT_UNDERGROUND, SECT_LAVA, SECT_SWAMP, SECT_MOON, SECT_MARS
SECT_MAX
} sector_types;
. Or if SECT_MAX is the last one, did you make clean when you recompiled?