mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-01 18:09:40 +00:00
Interpret ESM::Light::mSound as identifier not a path
This commit is contained in:
parent
5446906b30
commit
017f3d5484
1 changed files with 2 additions and 3 deletions
|
@ -41,9 +41,8 @@ namespace MWLua
|
|||
record["icon"] = sol::readonly_property([vfs](const ESM::Light& rec) -> std::string {
|
||||
return Misc::ResourceHelpers::correctIconPath(rec.mIcon, vfs);
|
||||
});
|
||||
record["sound"] = sol::readonly_property([vfs](const ESM::Light& rec) -> std::string {
|
||||
return Misc::ResourceHelpers::correctSoundPath(rec.mSound.getRefIdString(), vfs);
|
||||
});
|
||||
record["sound"]
|
||||
= sol::readonly_property([](const ESM::Light& rec) -> std::string { return rec.mSound.getRefIdString(); });
|
||||
record["mwscript"]
|
||||
= sol::readonly_property([](const ESM::Light& rec) -> std::string { return rec.mScript.getRefIdString(); });
|
||||
record["weight"] = sol::readonly_property([](const ESM::Light& rec) -> float { return rec.mData.mWeight; });
|
||||
|
|
Loading…
Reference in a new issue