add obj to the hero's inventory by inserting in front of a specific item; used for throw-and-return in case '!fixinv' is in effect */
| 1157 | /* add obj to the hero's inventory by inserting in front of a specific item; |
| 1158 | used for throw-and-return in case '!fixinv' is in effect */ |
| 1159 | struct obj * |
| 1160 | addinv_before( |
| 1161 | struct obj *obj, struct obj *other_obj) |
| 1162 | { |
| 1163 | /* if 'other_obj' is present this will implicitly be 'nomerge' */ |
| 1164 | return addinv_core0(obj, other_obj, TRUE); |
| 1165 | } |
| 1166 | |
| 1167 | /* return value will always be 'obj' */ |
| 1168 | struct obj * |
no test coverage detected