… | |
… | |
212 | { |
212 | { |
213 | for (materialtype_t *mt = materialt; mt && mt->next; mt = mt->next) |
213 | for (materialtype_t *mt = materialt; mt && mt->next; mt = mt->next) |
214 | if (name == mt->name) |
214 | if (name == mt->name) |
215 | return mt; |
215 | return mt; |
216 | |
216 | |
217 | return materialt; |
217 | return 0; |
218 | } |
218 | } |
219 | |
219 | |
220 | /* when doing transmutation of objects, we have to recheck the resistances, |
220 | /* when doing transmutation of objects, we have to recheck the resistances, |
221 | * as some that did not apply previously, may apply now. |
221 | * as some that did not apply previously, may apply now. |
222 | */ |
222 | */ |