1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fix android build

This commit is contained in:
nordsoft 2022-12-23 16:33:35 +04:00 committed by Nordsoft91
parent 25803b3c3a
commit 1250f67771

View File

@ -1124,8 +1124,7 @@ void CVCMIServer::create(const std::vector<std::string> & args)
std::vector<const void *> argv = {foo};
for(auto & a : args)
argv.push_back(a.c_str());
main(argv.size(), const_cast<char **>(foo));
main(argv.size(), reinterpret_cast<char **>(const_cast<void **>(&*argv.begin())));
}
#elif defined(SINGLE_PROCESS_APP)
void CVCMIServer::create(boost::condition_variable * cond, const std::vector<std::string> & args)