when you delete an I_ enum, you must also delete the R_ enum that belongs to it.

This commit is contained in:
Enno Rehling 2005-07-31 19:44:56 +00:00
parent f7502f08cf
commit fc6e6d40dc
3 changed files with 3 additions and 4 deletions

View File

@ -273,8 +273,6 @@ enum {
AR_RUSTY_CHAIN,
AR_SHIELD,
AR_RUSTY_SHIELD,
AR_EOGSHIELD,
AR_EOGCHAIN,
AR_MAX
};

View File

@ -2429,4 +2429,7 @@ register_resources(void)
register_function((pf_generic)use_snowball, "usesnowball");
register_function((pf_generic)give_horses, "givehorses");
/* make sure noone has deleted an I_ tpe without deleting the R_ type that goes with it! */
assert((int)I_SACK_OF_CONSERVATION == (int)R_SACK_OF_CONSERVATION);
}

View File

@ -412,8 +412,6 @@ enum {
R_GREATSWORD,
R_AXE,
R_EOGSWORD,
R_EOGSHIELD,
R_EOGCHAIN,
R_EOG,
R_SHIELD,
R_LANCE,