Lua standard thruster error
Astralcircle opened this issue · 2 comments
Astralcircle commented
Tested in the game without addons and chromium. Wiremod was the newest from Github (Feb 8, 2024)
Describe the bug
Lua error when selecting Wiremod model in the GMOD DEFAULT thrusters menu
lua/vgui/propselect.lua:47: bad argument #1 to 'pairs' (table expected, got boolean)
1. pairs - [C]:-1
2. DoClick - lua/vgui/propselect.lua:47
3. unknown - lua/vgui/dlabel.lua:237
To Reproduce
Steps to reproduce the behavior:
- Go to 'Tools --> Thruster
- Select model "models/fasteroid/computerfan.mdl" (Fan model from Wiremod)'
- See error
Expected behavior
Fix lua error
thegrb93 commented
this needs to be value = value or {}
https://github.com/wiremod/wire/blob/master/lua/wire/sh_modelplug.lua#L6
Fasteroid commented
my fault