mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-23 20:23:54 +00:00
Fix caps
This commit is contained in:
parent
bd90ac2ed8
commit
15bee21286
1 changed files with 2 additions and 2 deletions
|
@ -32,9 +32,9 @@ namespace MWLua
|
|||
void initCoreClassBindings(const Context& context)
|
||||
{
|
||||
sol::state_view& lua = context.mLua->sol();
|
||||
sol::usertype<classStore> classStoreT = lua.new_usertype<classStore>("ESM3_classStore");
|
||||
sol::usertype<classStore> classStoreT = lua.new_usertype<classStore>("ESM3_ClassStore");
|
||||
classStoreT[sol::meta_function::to_string] = [](const classStore& store) {
|
||||
return "ESM3_classStore{" + std::to_string(store.getSize()) + " classes}";
|
||||
return "ESM3_ClassStore{" + std::to_string(store.getSize()) + " classes}";
|
||||
};
|
||||
classStoreT[sol::meta_function::length] = [](const classStore& store) { return store.getSize(); };
|
||||
classStoreT[sol::meta_function::index] = sol::overload(
|
||||
|
|
Loading…
Reference in a new issue