diff --git a/apps/openmw/mwlua/regionbindings.cpp b/apps/openmw/mwlua/regionbindings.cpp index 167a2ba94a..d6fc65d3e0 100644 --- a/apps/openmw/mwlua/regionbindings.cpp +++ b/apps/openmw/mwlua/regionbindings.cpp @@ -6,20 +6,6 @@ #include #include -namespace -{ - struct RegionSoundRef - { - ESM::RefId mSoundId; - uint8_t mChance; - - RegionSoundRef(const ESM::Region::SoundRef& ref) - : mSoundId(ref.mSound) - , mChance(ref.mChance) - { - } - }; -} namespace sol { @@ -53,9 +39,6 @@ namespace MWLua = sol::readonly_property([](const ESM::Region::SoundRef& ref) { return ref.mSound.serializeText(); }); soundRefT["chance"] = sol::readonly_property([](const ESM::Region::SoundRef& ref) { return ref.mChance; }); - soundRefT["sound"] = sol::readonly_property([](const ESM::Region::SoundRef& ref) -> const ESM::Sound* { - return MWBase::Environment::get().getESMStore()->get().find(ref.mSound); - }); // Region record auto regionT = lua.new_usertype("ESM3_Region"); diff --git a/files/lua_api/openmw/core.lua b/files/lua_api/openmw/core.lua index cfc742994a..23c56eaeeb 100644 --- a/files/lua_api/openmw/core.lua +++ b/files/lua_api/openmw/core.lua @@ -1186,7 +1186,7 @@ -- Region sound reference -- @type RegionSoundRef -- @field #string soundId Sound record ID --- @field #number chance Probability (0–100) that this sound plays periodically in the region +-- @field #number chance Probability that this sound plays periodically in the region -- @field #Sound sound The full sound record referenced by `soundId`, or `nil` if not found --- @{#Factions}: Factions