From 13d03ecaeb67606d5553ba302f44dad11f453333 Mon Sep 17 00:00:00 2001 From: xenakios Date: Sun, 25 Feb 2018 21:06:59 +0200 Subject: [PATCH] Handle corner case in hasProperties --- Source/PS_Source/globals.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/PS_Source/globals.h b/Source/PS_Source/globals.h index 40461cc..cfb8eb9 100644 --- a/Source/PS_Source/globals.h +++ b/Source/PS_Source/globals.h @@ -74,6 +74,8 @@ const int g_maxnumoutchans = 32; template inline bool hasProperties(ValueTree src, Args&&... args) { + if (sizeof...(args) == 0) + return false; return (src.hasProperty(args) && ...); }