diff --git a/C#/Loon2Unity/Loon.Java/DataInputStream.cs b/C#/Loon2Unity/Loon.Java/DataInputStream.cs index fc58daf77..288232fdb 100644 --- a/C#/Loon2Unity/Loon.Java/DataInputStream.cs +++ b/C#/Loon2Unity/Loon.Java/DataInputStream.cs @@ -316,7 +316,7 @@ private int ReadToBuff(int count) int offset = 0; while (offset < count) { - int num2 = this.stream.Read(this.buff, offset, count); + int num2 = this.stream.Read(this.buff, offset, count - offset); if (num2 == 0) { return num2;