Release 1.10.6.0 - Autumn Update 2025 Hotfix 1
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#nullable enable
|
||||
#nullable enable
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -99,7 +99,7 @@ namespace Barotrauma
|
||||
{
|
||||
if (inc.BitPosition >= inc.LengthBits)
|
||||
{
|
||||
throw new Exception("Failed to find the end of the bit field: end of the message reached.");
|
||||
throw new NetStructReadException("Failed to find the end of the bit field: end of the message reached.");
|
||||
}
|
||||
currentByte = inc.ReadByte();
|
||||
bytes.Add(currentByte);
|
||||
|
||||
Reference in New Issue
Block a user