diff --git a/include/decl.h b/include/decl.h index cc655ae30..7bb2b1aea 100644 --- a/include/decl.h +++ b/include/decl.h @@ -956,7 +956,7 @@ struct instance_globals { struct musable m; /* nhlan.c */ -#ifdef LAN_FEATURES +#ifdef MAX_LAN_USERNAME char lusername[MAX_LAN_USERNAME]; int lusername_size; #endif diff --git a/src/decl.c b/src/decl.c index a53f4d477..84e16b280 100644 --- a/src/decl.c +++ b/src/decl.c @@ -503,8 +503,10 @@ const struct instance_globals g_init = { UNDEFINED_VALUES, /* m */ /* nhlan.c */ +#ifdef MAX_LAN_USERNAME UNDEFINED_VALUES, /* lusername */ MAX_LAN_USERNAME, /* lusername_size */ +#endif /* MAX_LAN_USERNAME */ /* o_init.c */ DUMMY, /* disco */