mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-21 00:25:44 +00:00
Fix menulist dumping functions not skipping nullptrs indices
This commit is contained in:
parent
ae095f8fe5
commit
dcff6132b9
@ -56,13 +56,13 @@ void AssetDumperMenuList::DumpFunctions(MenuDumper& menuDumper, const MenuList*
|
|||||||
for(auto i = 0; i < supportingData->uifunctions.totalFunctions; i++)
|
for(auto i = 0; i < supportingData->uifunctions.totalFunctions; i++)
|
||||||
{
|
{
|
||||||
const auto* function = supportingData->uifunctions.functions[i];
|
const auto* function = supportingData->uifunctions.functions[i];
|
||||||
if(function == nullptr)
|
if(function != nullptr)
|
||||||
continue;
|
{
|
||||||
|
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << "FUNC_" << functionIndex;
|
ss << "FUNC_" << functionIndex;
|
||||||
|
|
||||||
menuDumper.WriteFunctionDef(ss.str(), function);
|
menuDumper.WriteFunctionDef(ss.str(), function);
|
||||||
|
}
|
||||||
|
|
||||||
functionIndex++;
|
functionIndex++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user