From ee8e1996d9ece760c180581b0a7b07d1e4aa2487 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 31 Jan 2021 21:49:13 +0100 Subject: [PATCH] Allow reading of empty buffers passed to a node as input --- plugins/libimhex/include/hex/data_processor/node.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/libimhex/include/hex/data_processor/node.hpp b/plugins/libimhex/include/hex/data_processor/node.hpp index 87690d6f4..bddcc6080 100644 --- a/plugins/libimhex/include/hex/data_processor/node.hpp +++ b/plugins/libimhex/include/hex/data_processor/node.hpp @@ -53,10 +53,7 @@ namespace hex::dp { auto &outputData = attribute->getOutputData(); - if (outputData.empty()) - return { }; - else - return outputData; + return outputData; } std::optional getIntegerOnInput(u32 index) {