mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-10-06 12:15:37 +00:00
Fix menulist dumping functions not skipping nullptrs indices
This commit is contained in:
1 parent
ae095f8fe5
commit
dcff6132b9
1 file changed
+3
-3
@@ -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;
|
||||
|
||||
menuDumper.WriteFunctionDef(ss.str(), function);
|
||||
}
|
||||
|
||||
functionIndex++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user