mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-08-03 23:36:59 -04:00
Make read only
This commit is contained in:
parent
c5684a4204
commit
bc01162d8d
@ -17,10 +17,6 @@ namespace sol
|
|||||||
struct is_automagical<ESM::Region::SoundRef> : std::false_type
|
struct is_automagical<ESM::Region::SoundRef> : std::false_type
|
||||||
{
|
{
|
||||||
};
|
};
|
||||||
template <>
|
|
||||||
struct is_automagical<MWWorld::Store<RegionSoundRef>> : std::false_type
|
|
||||||
{
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace MWLua
|
namespace MWLua
|
||||||
@ -67,7 +63,7 @@ namespace MWLua
|
|||||||
sol::table res(lua, sol::create);
|
sol::table res(lua, sol::create);
|
||||||
for (const auto& soundRef : rec.mSoundList)
|
for (const auto& soundRef : rec.mSoundList)
|
||||||
res.add(soundRef);
|
res.add(soundRef);
|
||||||
return res;
|
return LuaUtil::makeReadOnly(res);
|
||||||
});
|
});
|
||||||
return LuaUtil::makeReadOnly(regions);
|
return LuaUtil::makeReadOnly(regions);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user