From ff2cf60526bd09d651e4a2449d0949214b3f195f Mon Sep 17 00:00:00 2001 From: Kannibal Ox Date: Sat, 30 Sep 2023 23:43:26 -0400 Subject: [PATCH] Ensure compability check actually checks the type for files --- include/rpc/command_impl.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/rpc/command_impl.h b/include/rpc/command_impl.h index 0c7f1b46..f961ca87 100644 --- a/include/rpc/command_impl.h +++ b/include/rpc/command_impl.h @@ -90,8 +90,9 @@ is_target_compatible(const target_type&) { template<> inline bool is_target_compatible(const target_type& target) { - return std::get<0>(target) == command_base::target_file || - command_base::target_file_itr; + return (std::get<0>(target) == command_base::target_file || + command_base::target_file_itr) && + std::get<0>(target) == target_type_id::value; } template<>