comment bit in polyself.c

This commit is contained in:
nhmall
2024-11-07 16:29:45 -05:00
parent 9e75dec8f3
commit aaf324bcb4

View File

@@ -1128,6 +1128,15 @@ dropp(struct obj *obj)
for (otmp = gi.invent; otmp; otmp = otmp->nobj) {
if (otmp == obj) {
dropx(obj);
/* Note that otmp->nobj is pointing at fobj now,
* as a result of:
* dropx() -> dropy() -> dropz() -> place_object(),
* and no longer pointing at the next obj in inventory.
* That would be an issue if this loop were allowed
* to continue, but the break statement that
* follows prevents the loop from continuing on with
* objects on the floor.
*/
break;
}
}