From 80fdbcf8c70515204de5a519cea6da7f40280f5f Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Tue, 8 Jul 2008 23:55:29 +0000 Subject: [PATCH] Fixed regression in ForwardSys with ET_LowEvent --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402390 --- core/systems/ForwardSys.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/systems/ForwardSys.cpp b/core/systems/ForwardSys.cpp index 654f158b..c78d9fd6 100644 --- a/core/systems/ForwardSys.cpp +++ b/core/systems/ForwardSys.cpp @@ -385,7 +385,8 @@ int CForward::Execute(cell_t *result, IForwardFilter *filter) } case ET_LowEvent: { - if (cur_result < low_result) + /* Check if the current result is the lowest so far (or if it's the first result) */ + if (cur_result < low_result || success == 1) { low_result = cur_result; }