mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-30 19:11:35 +00:00
Fix before insert index
This commit is contained in:
parent
b7b6a41aec
commit
32169155bb
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ namespace MWLua
|
|||
if (index == LuaUi::Layer::count())
|
||||
throw std::logic_error(
|
||||
Misc::StringUtils::format("Couldn't insert before non-existent layer %s", beforeName));
|
||||
LuaUi::Layer::insert(index - 1, name, options);
|
||||
LuaUi::Layer::insert(index, name, options);
|
||||
},
|
||||
"Insert before UI layer");
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue