Fix menulist dumping functions not skipping nullptrs indices

This commit is contained in:
Jan 2021-12-29 02:05:44 +01:00
parent ae095f8fe5
commit dcff6132b9

View File

@ -56,13 +56,13 @@ void AssetDumperMenuList::DumpFunctions(MenuDumper& menuDumper, const MenuList*
for(auto i = 0; i < supportingData->uifunctions.totalFunctions; i++)
{
const auto* function = supportingData->uifunctions.functions[i];
if(function == nullptr)
continue;
if(function != nullptr)
{
std::stringstream ss;
ss << "FUNC_" << functionIndex;
std::stringstream ss;
ss << "FUNC_" << functionIndex;
menuDumper.WriteFunctionDef(ss.str(), function);
menuDumper.WriteFunctionDef(ss.str(), function);
}
functionIndex++;
}