Fix index

This commit is contained in:
Exca-DK 2025-03-01 02:17:05 +01:00
parent c2d2404980
commit 97e2d5aeb7

View file

@ -192,7 +192,8 @@ func (arguments Arguments) UnpackValues(data []byte) ([]interface{}, error) {
retval := make([]interface{}, 0, size) retval := make([]interface{}, 0, size)
virtualArgs := 0 virtualArgs := 0
for index, arg := range arguments { index := 0
for _, arg := range arguments {
if arg.Indexed { if arg.Indexed {
continue continue
} }
@ -218,6 +219,7 @@ func (arguments Arguments) UnpackValues(data []byte) ([]interface{}, error) {
virtualArgs += getTypeSize(arg.Type)/32 - 1 virtualArgs += getTypeSize(arg.Type)/32 - 1
} }
retval = append(retval, marshalledValue) retval = append(retval, marshalledValue)
index++
} }
return retval, nil return retval, nil
} }