From b11bd185e3c656c08e3f3d57eb2ada15b7ac276d Mon Sep 17 00:00:00 2001 From: Michael Lutz Date: Mon, 20 Dec 2021 16:59:07 +0100 Subject: [PATCH] Fix #9756: Network command unpack proc was not generated in all cases. The case where the callback proc takes all command results but not any of the command parameters was not handled properly. --- src/command_type.h | 3 +++ src/network/network_command.cpp | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/command_type.h b/src/command_type.h index e8db1ed7f4..9a122dede0 100644 --- a/src/command_type.h +++ b/src/command_type.h @@ -409,12 +409,14 @@ template struct CommandFunctionTraitHelper; template struct CommandFunctionTraitHelper { using Args = std::tuple...>; + using RetTypes = void; using CbArgs = Args; using CbProcType = void(*)(Commands, const CommandCost &); }; template