… | |
… | |
142 | * It is presumed that the player will be needing to actually |
142 | * It is presumed that the player will be needing to actually |
143 | * use the skill, so thus if use of the skill requires a skill |
143 | * use the skill, so thus if use of the skill requires a skill |
144 | * tool, this code will equip it. |
144 | * tool, this code will equip it. |
145 | */ |
145 | */ |
146 | object * |
146 | object * |
147 | find_skill_by_name (object *who, const shstr &sh) |
147 | find_skill_by_name (object *who, shstr_tmp sh) |
148 | { |
148 | { |
149 | object *skill_tool = 0; |
149 | object *skill_tool = 0; |
150 | |
150 | |
151 | for (object *tmp = who->inv; tmp; tmp = tmp->below) |
151 | for (object *tmp = who->inv; tmp; tmp = tmp->below) |
152 | if (tmp->skill == sh) |
152 | if (tmp->skill == sh) |