mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Appease clang-format by changing something I didn't touch
This commit is contained in:
parent
36a75cdb29
commit
53afa6b185
@ -846,18 +846,18 @@ void OMW::Engine::prepareEngine()
|
||||
const MWWorld::Store<ESM::GameSetting>* gmst = &mWorld->getStore().get<ESM::GameSetting>();
|
||||
mL10nManager->setGmstLoader(
|
||||
[gmst, misses = std::set<std::string, std::less<>>()](std::string_view gmstName) mutable {
|
||||
const ESM::GameSetting* res = gmst->search(gmstName);
|
||||
if (res && res->mValue.getType() == ESM::VT_String)
|
||||
return res->mValue.getString();
|
||||
else
|
||||
{
|
||||
if (misses.count(gmstName) == 0)
|
||||
const ESM::GameSetting* res = gmst->search(gmstName);
|
||||
if (res && res->mValue.getType() == ESM::VT_String)
|
||||
return res->mValue.getString();
|
||||
else
|
||||
{
|
||||
misses.emplace(gmstName);
|
||||
Log(Debug::Error) << "GMST " << gmstName << " not found";
|
||||
if (misses.count(gmstName) == 0)
|
||||
{
|
||||
misses.emplace(gmstName);
|
||||
Log(Debug::Error) << "GMST " << gmstName << " not found";
|
||||
}
|
||||
return std::string("GMST:") + std::string(gmstName);
|
||||
}
|
||||
return std::string("GMST:") + std::string(gmstName);
|
||||
}
|
||||
});
|
||||
|
||||
mWindowManager->setStore(mWorld->getStore());
|
||||
|
Loading…
x
Reference in New Issue
Block a user