mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +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++)
|
||||
{
|
||||
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++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user