1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-29 16:34:30 +00:00
This commit is contained in:
AnyOldName3 2025-07-24 00:37:28 +01:00
parent 092d9a4c62
commit 437f22ed72

View file

@ -55,7 +55,7 @@ namespace LuaUtil
// Find duplicates; only the last occurrence will be used (unless `sMerge` flag is used). // Find duplicates; only the last occurrence will be used (unless `sMerge` flag is used).
// Search for duplicates is case insensitive. // Search for duplicates is case insensitive.
std::vector<bool> skip(cfg.mScripts.size(), false); std::vector<bool> skip(cfg.mScripts.size(), false);
for (int i = 0; i < static_cast<int>(mScripts.size()); ++i) for (int i = 0; i < static_cast<int>(cfg.mScripts.size()); ++i)
{ {
const ESM::LuaScriptCfg& script = cfg.mScripts[i]; const ESM::LuaScriptCfg& script = cfg.mScripts[i];
bool global = script.mFlags & ESM::LuaScriptCfg::sGlobal; bool global = script.mFlags & ESM::LuaScriptCfg::sGlobal;