diff options
Diffstat (limited to 'script/plugins/ffi/searchCode.lua')
-rw-r--r-- | script/plugins/ffi/searchCode.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/plugins/ffi/searchCode.lua b/script/plugins/ffi/searchCode.lua index 9e74e7c0..86dbc680 100644 --- a/script/plugins/ffi/searchCode.lua +++ b/script/plugins/ffi/searchCode.lua @@ -3,6 +3,9 @@ local vm = require 'vm' local function getLiterals(arg) local literals = vm.getLiterals(arg) local res = {} + if not literals then + return res + end for k, v in pairs(literals) do if type(k) == 'string' then res[#res+1] = k |