Commit ba41036
committed
fix(Lua): LocalUnrealParam and RemoteUnrealParam no longer tries to handle unregistered indexing
Previously, it wouldn't distinguish between Get/Set, and any random indexing operation, often triggering Lua pushers, which themselves will generate a very confusing error message.
This commit removes the Index and NewIndex metamethods from these types, which means Lua will give a standard error when improperly indexing into them without first calling `Get`, for example: `attempt to call a RemoteUnrealParam value (method 'GetFullName')`1 parent d70f525 commit ba41036
File tree
2 files changed
+0
-18
lines changed- UE4SS
- include/LuaType
- src/LuaType
2 files changed
+0
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
834 | 834 | | |
835 | 835 | | |
836 | 836 | | |
837 | | - | |
838 | | - | |
839 | | - | |
840 | | - | |
841 | | - | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | 837 | | |
847 | 838 | | |
848 | 839 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2253 | 2253 | | |
2254 | 2254 | | |
2255 | 2255 | | |
2256 | | - | |
2257 | | - | |
2258 | | - | |
2259 | | - | |
2260 | | - | |
2261 | | - | |
2262 | | - | |
2263 | | - | |
2264 | | - | |
2265 | 2256 | | |
2266 | 2257 | | |
2267 | 2258 | | |
| |||
0 commit comments