std::find() won't work here since we're searching for a member of the Mod class, and not an instance of the Mod class itself. IT shouldn't matter anyway, since this function in particular is called only once when starting the game.