diff --git a/Source/Game/Conditions/ConditionManager.cs b/Source/Game/Conditions/ConditionManager.cs index 94f26ae0b..e06064f3e 100644 --- a/Source/Game/Conditions/ConditionManager.cs +++ b/Source/Game/Conditions/ConditionManager.cs @@ -2423,7 +2423,7 @@ namespace Game break; } - if (buffer.GetCurrentStream().Position < buffer.GetSize()) + if (buffer.GetCurrentStream().Position >= buffer.GetSize()) break; resultLogic = (WorldStateExpressionLogic)buffer.ReadUInt8();