revert change that was amde wrong

This commit is contained in:
David Rodenkirchen 2023-08-18 16:44:56 +02:00
parent 80ae18c6b2
commit 8c5ae3f161
1 changed files with 2 additions and 2 deletions

View File

@ -338,7 +338,7 @@ namespace BattleBitAPI.Server
throw new Exception("Unable to read the Loading Screen Text Size");
int stringSize = readStream.ReadUInt16();
if (stringSize > Const.MaxLoadingScreenTextLength)
if (stringSize < Const.MinLoadingScreenTextLength || stringSize > Const.MaxLoadingScreenTextLength)
throw new Exception("Invalid server Loading Screen Text Size");
if (stringSize > 0)
@ -363,7 +363,7 @@ namespace BattleBitAPI.Server
throw new Exception("Unable to read the Server Rules Text Size");
int stringSize = readStream.ReadUInt16();
if (stringSize > Const.MaxServerRulesTextLength)
if (stringSize < Const.MinServerRulesTextLength || stringSize > Const.MaxServerRulesTextLength)
throw new Exception("Invalid server Server Rules Text Size");
if (stringSize > 0)