commit 19fc5ad595c28a17c9eed3f697e8a47ca68538d0 from: Omar Polo date: Fri Apr 03 17:41:52 2020 UTC 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. commit - 9a0497ff1c0c15dcb7b27fa7964b3b1e4dacc6b1 commit + 19fc5ad595c28a17c9eed3f697e8a47ca68538d0 blob - ca1f2eddf1325baf4c86dc8dfc289159f74f338a blob + ce8f0523d4a8e176004e6ab46f7776e4dc522dfb --- 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) {