From 5e4b3f84b63b75c938093bb02e85a68028e76270 Mon Sep 17 00:00:00 2001 From: Vladislav Belov Date: Mon, 14 Oct 2024 01:02:01 +0200 Subject: [PATCH] Fixes Future usage in CCmpPathfinder after 0eed117e6d2119200d6a911e1db753f755317f58. --- source/simulation2/components/CCmpPathfinder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/simulation2/components/CCmpPathfinder.cpp b/source/simulation2/components/CCmpPathfinder.cpp index 0e1e24caba..5260a7395d 100644 --- a/source/simulation2/components/CCmpPathfinder.cpp +++ b/source/simulation2/components/CCmpPathfinder.cpp @@ -799,7 +799,8 @@ void CCmpPathfinder::SendRequestedPaths() } // We're done, get the exceptions from the futures. for (Future& future : m_Futures) - future.Get(); + if (future.Valid()) + future.Get(); { PROFILE2("PostMessages");