diff --git a/lib/base/utility.cpp b/lib/base/utility.cpp index bee1105a5..42e194a7c 100644 --- a/lib/base/utility.cpp +++ b/lib/base/utility.cpp @@ -507,7 +507,7 @@ bool Utility::Glob(const String& pathSpec, const function& */ void Utility::WaitUntil(const function& predicate) { - while (!predicate) + while (!predicate()) Application::GetInstance()->ProcessEvents(); }