mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-13 15:26:09 +00:00
CGunWeapon: Make destructor virtual
This class is used as polymorphic type, so the destructor should be marked as virtual to prevent any potential undefined behavior. This also more closely matches the GM8E v0 binary itself.
This commit is contained in:
@@ -75,6 +75,8 @@ CGunWeapon::CGunWeapon(CAssetId ancsId, EWeaponType type, TUniqueId playerId, EM
|
||||
BuildDependencyList(x200_beamId);
|
||||
}
|
||||
|
||||
CGunWeapon::~CGunWeapon() = default;
|
||||
|
||||
void CGunWeapon::AllocResPools(CPlayerState::EBeamId beam) {
|
||||
const auto& wPair = g_tweakGunRes->GetWeaponPair(beam);
|
||||
const char* const* muzzleNames = &skMuzzleNames[size_t(beam) * 2];
|
||||
|
||||
Reference in New Issue
Block a user