From cd16431d36fc6803201586fa4aa5066f6cb99c86 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Tue, 9 Aug 2022 14:11:15 -0400 Subject: [PATCH] ITweakPlayerGun: Default-init SShotParam flags --- Runtime/Tweaks/ITweakPlayerGun.hpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/Runtime/Tweaks/ITweakPlayerGun.hpp b/Runtime/Tweaks/ITweakPlayerGun.hpp index ba433f8f4..e11e5b24a 100644 --- a/Runtime/Tweaks/ITweakPlayerGun.hpp +++ b/Runtime/Tweaks/ITweakPlayerGun.hpp @@ -6,20 +6,15 @@ namespace metaforce { /* Same as CDamageInfo */ struct SShotParam { u32 x0_weaponType = -1; - bool x4_24_charged : 1; - bool x4_25_combo : 1; - bool x4_26_instaKill : 1; + bool x4_24_charged : 1 = false; + bool x4_25_combo : 1 = false; + bool x4_26_instaKill : 1 = false; float x8_damage = 0.f; float xc_radiusDamage = 0.f; float x10_radius = 0.f; float x14_knockback = 0.f; - bool x18_24_noImmunity : 1; - SShotParam() { - x4_24_charged = false; - x4_25_combo = false; - x4_26_instaKill = false; - x18_24_noImmunity = false; - } + bool x18_24_noImmunity : 1 = false; + SShotParam() = default; explicit SShotParam(CInputStream& in); };