mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-15 20:03:15 +02:00
Remove unused variable
This commit is contained in:
@@ -221,13 +221,6 @@ int main(int argc, char * argv[])
|
|||||||
else if(s->isNull())
|
else if(s->isNull())
|
||||||
s->Integer() = defaultValue;
|
s->Integer() = defaultValue;
|
||||||
};
|
};
|
||||||
auto setSettingString = [](std::string key, std::string arg, std::string defaultValue) {
|
|
||||||
Settings s = settings.write(vstd::split(key, "/"));
|
|
||||||
if(::vm.count(arg))
|
|
||||||
s->String() = ::vm[arg].as<std::string>();
|
|
||||||
else if(s->isNull())
|
|
||||||
s->String() = defaultValue;
|
|
||||||
};
|
|
||||||
|
|
||||||
setSettingBool("session/onlyai", "onlyAI");
|
setSettingBool("session/onlyai", "onlyAI");
|
||||||
if(vm.count("headless"))
|
if(vm.count("headless"))
|
||||||
|
Reference in New Issue
Block a user