mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-10-16 16:43:27 +00:00
chore: set internal name earlier
This commit is contained in:
2 files changed
+2
-6
No files matched your search
@@ -258,7 +258,6 @@ namespace
|
||||
weapon->weapDef.parallelBounce = weapon->parallelBounce;
|
||||
weapon->weapDef.perpendicularBounce = weapon->perpendicularBounce;
|
||||
weapon->weapDef.locationDamageMultipliers = weapon->locationDamageMultipliers;
|
||||
weapon->weapCompleteDef.szInternalName = "";
|
||||
|
||||
for (const auto& field : weapon_fields)
|
||||
{
|
||||
@@ -397,6 +396,7 @@ namespace
|
||||
auto* weaponFullDef = memory->Create<WeaponFullDef>();
|
||||
memset(weaponFullDef, 0, sizeof(WeaponFullDef));
|
||||
InitWeaponFullDef(weaponFullDef);
|
||||
weaponFullDef->weapCompleteDef.szInternalName = memory->Dup(assetName.c_str());
|
||||
|
||||
InfoStringToWeaponConverter converter(
|
||||
infoString, weaponFullDef, zone->m_script_strings, memory, manager, weapon_fields, std::extent_v<decltype(weapon_fields)>);
|
||||
@@ -406,8 +406,6 @@ namespace
|
||||
return true;
|
||||
}
|
||||
|
||||
weaponFullDef->weapCompleteDef.szInternalName = memory->Dup(assetName.c_str());
|
||||
|
||||
CalculateWeaponFields(weaponFullDef, memory);
|
||||
|
||||
manager->AddAsset(ASSET_TYPE_WEAPON,
|
||||
|
||||
Reference in new issue
Block a user