Should probably use some find invocation instead.
| 555 | |
| 556 | // Should probably use some find invocation instead. |
| 557 | static int _find_save(const vector<player_save_info>& chars, const string& name) |
| 558 | { |
| 559 | for (int i = 0; i < static_cast<int>(chars.size()); ++i) |
| 560 | if (chars[i].name == name) |
| 561 | return i; |
| 562 | return -1; |
| 563 | } |
| 564 | |
| 565 | static bool _game_defined(const newgame_def& ng) |
| 566 | { |
no test coverage detected