From 578a21e1ff46c532a9d0436225583a0b60122b04 Mon Sep 17 00:00:00 2001 From: Petter Strandmark Date: Mon, 30 Dec 2013 16:41:40 +0100 Subject: [PATCH] Bug fix Function variable overlap check. --- source/function.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/function.cpp b/source/function.cpp index 203d25b..a66b2c1 100644 --- a/source/function.cpp +++ b/source/function.cpp @@ -318,7 +318,7 @@ std::pairfirst >= t) { output.first = map.end(); } - if (output.second->first <= t) { + if (output.second != map.end() && output.second->first <= t) { output.second = map.end(); } return output;