Commit 74782db
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 74782db
File tree
3 files changed
+2
-18
lines changed- UE4SS
- include/LuaType
- src/LuaType
- assets
3 files changed
+2
-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 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| 349 | + | |
| 350 | + | |
349 | 351 | | |
350 | 352 | | |
351 | 353 | | |
| |||
0 commit comments