OSDN Git Service

upgrade to 3.6.7
[jnethack/source.git] / src / apply.c
index e57caec..27eb693 100644 (file)
@@ -786,8 +786,10 @@ boolean feedback;
             Your("\95R\82ª\82½\82é\82ñ\82Å\97\8e\82¿\82½\81D");
     }
     for (otmp = invent; otmp; otmp = otmp->nobj)
-        if (otmp->otyp == LEASH && otmp->leashmon == (int) mtmp->m_id)
+        if (otmp->otyp == LEASH && otmp->leashmon == (int) mtmp->m_id) {
             otmp->leashmon = 0;
+            update_inventory();
+        }
     mtmp->mleashed = 0;
 }