gi.invalid_obj -> hands_obj

This commit is contained in:
nhmall
2023-11-11 19:49:38 -05:00
parent 47bca92e6c
commit 76d328d86a
15 changed files with 40 additions and 34 deletions

View File

@@ -384,7 +384,7 @@ dowield(void)
}
/* Handle no object, or object in other slot */
if (wep == &gi.invalid_obj) {
if (wep == &hands_obj) {
wep = (struct obj *) 0;
} else if (wep == uswapwep) {
return doswapweapon();
@@ -516,7 +516,7 @@ doquiver_core(const char *verb) /* "ready" or "fire" */
if (!newquiver) {
/* Cancelled */
return ECMD_CANCEL;
} else if (newquiver == &gi.invalid_obj) { /* no object */
} else if (newquiver == &hands_obj) { /* no object */
/* Explicitly nothing */
if (uquiver) {
You("now have no ammunition readied.");