mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-10-23 12:08:11 +00:00
fix: preserve menu function indices (#1051)
This commit is contained in:
2 files changed
+2
-8
No files matched your search
@@ -47,7 +47,6 @@ namespace
|
||||
void DumpFunctions(menu::IWriterIW4& menuDumper, const MenuList* menuList)
|
||||
{
|
||||
const auto allSupportingData = GetAllUniqueExpressionSupportingData(menuList);
|
||||
auto functionIndex = 0u;
|
||||
|
||||
assert(allSupportingData.size() <= 1);
|
||||
|
||||
@@ -62,9 +61,7 @@ namespace
|
||||
if (!function)
|
||||
continue;
|
||||
|
||||
menuDumper.WriteFunctionDef(std::format("FUNC_{}", functionIndex), function);
|
||||
|
||||
functionIndex++;
|
||||
menuDumper.WriteFunctionDef(std::format("FUNC_{}", i), function);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,7 +47,6 @@ namespace
|
||||
void DumpFunctions(menu::IWriterIW5& menuDumper, const MenuList* menuList)
|
||||
{
|
||||
const auto allSupportingData = GetAllUniqueExpressionSupportingData(menuList);
|
||||
auto functionIndex = 0u;
|
||||
|
||||
assert(allSupportingData.size() <= 1);
|
||||
|
||||
@@ -62,9 +61,7 @@ namespace
|
||||
if (!function)
|
||||
continue;
|
||||
|
||||
menuDumper.WriteFunctionDef(std::format("FUNC_{}", functionIndex), function);
|
||||
|
||||
functionIndex++;
|
||||
menuDumper.WriteFunctionDef(std::format("FUNC_{}", i), function);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user