diff --git a/source/cli/main.cpp b/source/cli/main.cpp index 7647627..365bc88 100644 --- a/source/cli/main.cpp +++ b/source/cli/main.cpp @@ -218,7 +218,7 @@ bool select_device(std::string& name, std::string& SN, std::string& adb) } return true; } - int number = 0; + MaaSize number = 0; if (!select_device_number(device_size, number)) { return false; } @@ -239,7 +239,7 @@ bool select_device(std::string& name, std::string& SN, std::string& adb) return true; } -bool select_device_number(const MaaSize& device_size, int& number) +bool select_device_number(const MaaSize& device_size, MaaSize& number) { std::cout << std::endl << "Please select a device:" << std::endl << std::endl; std::cout << " 0. Manual" << std::endl; diff --git a/source/cli/main.h b/source/cli/main.h index e6b8231..92b78c5 100644 --- a/source/cli/main.h +++ b/source/cli/main.h @@ -29,7 +29,7 @@ bool default_device_init(DeviceConfig& device); bool select_device(std::string& name, std::string& SN, std::string& adb); -bool select_device_number(const MaaSize& device_size, int& number); +bool select_device_number(const MaaSize& device_size, MaaSize& number); void print_device_list(const MaaSize& device_size);