Closed agc93 closed 3 years ago
I never had a closer look at that code since it was part of the original project, but now that I look at it... why is it even there? The code is literally reading the value length itself...
Anyway, should be fixed now
I tried this out for parsing a save game, but had an exception when reading a string property inside an array. Since the call to
UESerializer.Deserialize(null, ItemType, -1, reader)
directly specified -1 as thevalueLength
, that gets passed all the way through to theReadUEString(this BinaryReader reader, long vl)
extension method and the -1 values causes an exception on line 39 since it's out of range.From testing around, I found that changing
UEStringProperty
's constructor to the other overload worked fine:However, I'm not sure if that will break other things.