mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 19:47:44 +00:00
ITweakGunRes: Make use of std::array where applicable
Deduplicates a few array sizes and makes the member variables more strongly typed.
This commit is contained in:
@@ -76,7 +76,7 @@ CGunWeapon::CGunWeapon(CAssetId ancsId, EWeaponType type, TUniqueId playerId, EM
|
||||
}
|
||||
|
||||
void CGunWeapon::AllocResPools(CPlayerState::EBeamId beam) {
|
||||
const CAssetId* const wPair = g_tweakGunRes->GetWeaponPair(beam);
|
||||
const auto& wPair = g_tweakGunRes->GetWeaponPair(beam);
|
||||
const char* const* muzzleNames = &skMuzzleNames[size_t(beam) * 2];
|
||||
const char* const* frozenNames = &skFrozenNames[size_t(beam) * 2];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user