fix: Subcommands not working at all on Linux

This commit is contained in:
WerWolv
2023-07-21 14:12:08 +02:00
parent 3149183450
commit e5a793e8de
3 changed files with 4 additions and 12 deletions

View File

@@ -155,7 +155,7 @@ namespace hex {
std::span<SubCommand> Plugin::getSubCommands() const {
if (this->m_getSubCommandsFunction != nullptr) {
auto result = this->m_getSubCommandsFunction();
return { result->subCommands, result->size };
return *reinterpret_cast<std::vector<SubCommand>*>(result);
} else
return { };
}