We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6973e7f commit 878d948Copy full SHA for 878d948
1 file changed
TankLib/teTexture.cs
@@ -132,7 +132,10 @@ private void Read(BinaryReader reader) {
132
}
133
134
Data = new byte[Header.DataSize];
135
- reader.ReadExactly(Data);
+ //reader.ReadExactly(Data);
136
+
137
+ // todo: one Naraka texture has invalid size and causes exception when using read exactly, needs investigation
138
+ reader.Read(Data, 0, (int)Header.DataSize);
139
140
141
public teResourceGUID GetPayloadGUID(ulong textureGUID, uint payloadIdx) {
0 commit comments