mirror of
https://github.com/OpenMW/openmw.git
synced 2026-01-04 13:13:06 +00:00
Make read only
This commit is contained in:
parent
943966d59a
commit
475e5522ed
1 changed files with 1 additions and 5 deletions
|
|
@ -17,10 +17,6 @@ namespace sol
|
|||
struct is_automagical<ESM::Region::SoundRef> : std::false_type
|
||||
{
|
||||
};
|
||||
template <>
|
||||
struct is_automagical<MWWorld::Store<RegionSoundRef>> : std::false_type
|
||||
{
|
||||
};
|
||||
}
|
||||
|
||||
namespace MWLua
|
||||
|
|
@ -67,7 +63,7 @@ namespace MWLua
|
|||
sol::table res(lua, sol::create);
|
||||
for (const auto& soundRef : rec.mSoundList)
|
||||
res.add(soundRef);
|
||||
return res;
|
||||
return LuaUtil::makeReadOnly(res);
|
||||
});
|
||||
return LuaUtil::makeReadOnly(regions);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue