analysis lint for u*.c
One actual bug: mhitm_ad_ench() could pass Null to drain_item() which was not prepared to deal with that.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 u_init.c $NHDT-Date: 1725227809 2024/09/01 21:56:49 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.111 $ */
|
||||
/* NetHack 3.7 u_init.c $NHDT-Date: 1737620595 2025/01/23 00:23:15 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.113 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Robert Patrick Rankin, 2017. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -1329,6 +1329,7 @@ ini_inv(struct trobj *trop)
|
||||
* it was UNDEF_TYP or not after this. */
|
||||
|
||||
otyp = ini_inv_obj_substitution(trop, obj);
|
||||
nhUse(otyp);
|
||||
|
||||
/* nudist gets no armor */
|
||||
if (u.uroleplay.nudist && obj->oclass == ARMOR_CLASS) {
|
||||
|
||||
Reference in New Issue
Block a user