mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +00:00
chore: set internal name earlier
This commit is contained in:
parent
e764373013
commit
1601c87481
@ -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,
|
||||
|
@ -683,7 +683,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)
|
||||
{
|
||||
@ -822,6 +821,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)>);
|
||||
@ -831,8 +831,6 @@ namespace
|
||||
return true;
|
||||
}
|
||||
|
||||
weaponFullDef->weapCompleteDef.szInternalName = memory->Dup(assetName.c_str());
|
||||
|
||||
CalculateWeaponFields(weaponFullDef, memory);
|
||||
|
||||
manager->AddAsset(ASSET_TYPE_WEAPON,
|
||||
|
Loading…
x
Reference in New Issue
Block a user