* TODO: This is a duplicate of GetResourceCountID() * Follow the same steps to get rid of it. */
| 865 | * Follow the same steps to get rid of it. |
| 866 | */ |
| 867 | int cResourceCount::GetResourceByName(cString name) const |
| 868 | { |
| 869 | int result = -1; |
| 870 | |
| 871 | for(int i = 0; i < resource_name.GetSize(); i++) |
| 872 | { |
| 873 | if(resource_name[i] == name) |
| 874 | { |
| 875 | result = i; |
| 876 | } |
| 877 | } |
| 878 | |
| 879 | return result; |
| 880 | |
| 881 | } |
| 882 | |
| 883 |
no test coverage detected