comment bit in polyself.c
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user