MCPcopy Create free account
hub / github.com/crawl/crawl / _find_save

Function _find_save

crawl-ref/source/startup.cc:557–563  ·  view source on GitHub ↗

Should probably use some find invocation instead.

Source from the content-addressed store, hash-verified

555
556// Should probably use some find invocation instead.
557static 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
565static bool _game_defined(const newgame_def& ng)
566{

Callers 3

UIStartupMenuMethod · 0.85
on_button_focusinMethod · 0.85
on_showMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected