From 27d825ddceb90efa08416c4a6f8b48a2dd3bee5a Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 6 Feb 2024 17:24:41 -0500 Subject: [PATCH] Core/Conditions: Fixed typo in worldstate expression evaluation Port From (https://github.com/TrinityCore/TrinityCore/commit/7b88faf672ef664e23d0012cbe81612ff00eda3b) --- Source/Game/Conditions/ConditionManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();