mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix 'attempt to compare string with number' in audio.input.fetch
This commit is contained in:
parent
a32845d083
commit
ba2546e096
1 changed files with 2 additions and 1 deletions
|
|
@ -261,7 +261,8 @@ local function create_FFIview_class(name, typename, typesize)
|
|||
return function()
|
||||
i = i + 1
|
||||
if i <= self.bytes.size / typesize then
|
||||
return i, self.ptr[i - 1]
|
||||
local ptr = FFI.cast(ptrtype, self.bytes.bytes)
|
||||
return i, ptr[i - 1]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue