|
byte partNumber = reader.ReadByte(); |
|
parts = new ItemValue[4]; |
|
|
|
if (partNumber != 0) { |
|
for (int i = 0; i < (int)partNumber; i++) { |
Bare in mind that I do not know C# at all.
parts array is initialized with a size of 4 but can potentially go beyond 4
(I was having a look at the code to implement new feature in https://github.com/nicolas-f/7DTD-leaflet)
7DaysProfileEditor/7DaysProfileEditor/source/PlayerData/ItemValue.cs
Lines 45 to 49 in c6f09ce
Bare in mind that I do not know C# at all.
parts array is initialized with a size of 4 but can potentially go beyond 4
(I was having a look at the code to implement new feature in https://github.com/nicolas-f/7DTD-leaflet)