Commit Diff
- Commit:
19fc5ad595c28a17c9eed3f697e8a47ca68538d0
- From:
- Omar Polo <op@xglobe.in>
- Date:
- Message:
- use par->tag instead of par->obj->tags[0] par->tag is what the user typed, that may or may not be equal to par->obj->tags[0]. This improves the consistency. That code was written prior to the introduction of the struct param and thus used object->tags.
- Actions:
- Patch | Tree
--- inventory.c +++ inventory.c @@ -15,7 +15,7 @@ move_object(struct param *par, struct object *from, st printf("There is nobody here to give that to.\n"); else if (obj == to) printf("What's the meaning of putting a %s inside itself?\n", - obj->tags[0]); + par->tag); else if (from != obj->location) { /* give the appropriate error message */ switch (dist) {