We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf96d80 commit 5a02d64Copy full SHA for 5a02d64
src/Export/Classes/Dat64File.lua
@@ -45,9 +45,9 @@ local dataTypes = {
45
String = {
46
size = 8,
47
read = function(b, o, d)
48
- if o > #b - 3 then return "<no offset>" end
+ if o > #b - 7 then return "<no offset>" end
49
local stro = bytesToULong(b, o)
50
- if stro > #b - 3 then return "<bad offset>" end
+ if stro > #b - 7 then return "<bad offset>" end
51
return convertUTF16to8(b, d + stro)
52
end,
53
},
@@ -71,7 +71,7 @@ local dataTypes = {
71
size = 16,
72
ref = true,
73
74
- if o > #b - 7 then return 1337 end
+ if o > #b - 15 then return 1337 end
75
return bytesToULong(b, o)
76
77
0 commit comments