diff --git a/src/OpenFOAM/primitives/Pair/Pair.H b/src/OpenFOAM/primitives/Pair/Pair.H index 9b5944b52..d050b6d75 100644 --- a/src/OpenFOAM/primitives/Pair/Pair.H +++ b/src/OpenFOAM/primitives/Pair/Pair.H @@ -116,6 +116,7 @@ public: FatalErrorInFunction << "Call to other only valid for Pair with differing" << " elements:" << *this << abort(FatalError); + return first(); } else if (first() == a) {