Skip to content

Commit 8c525ee

Browse files
committed
fix(grenade): initialize creator weapon class to unknown
and remove setting it from Spawn
1 parent 78ca92a commit 8c525ee

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/game/server/swarm/asw_grenade_cluster.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ void CASW_Grenade_Cluster::Spawn( void )
132132
SetThink( &CASW_Grenade_Cluster::CheckNearbyDrones );
133133
SetNextThink( gpGlobals->curtime + asw_cluster_grenade_radius_check_interval.GetFloat() );
134134
}
135-
m_CreatorWeaponClass = (Class_T)CLASS_ASW_UNKNOWN;
136135

137136
m_bTeslaAmped = false;
138137

src/game/server/swarm/asw_grenade_cluster.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class CASW_Grenade_Cluster : public CASW_Grenade_Vindicator
2929

3030
float m_fDetonateTime;
3131
float m_fEarliestAOEDetonationTime;
32-
Class_T m_CreatorWeaponClass;
32+
Class_T m_CreatorWeaponClass = (Class_T)CLASS_ASW_UNKNOWN;
3333

3434
void SetAdvancedRicochet(bool bRicochet) { m_bAdvancedRicochet = bRicochet; } // if set, grenade will ricochet with increaced velocity if no world contact explosion specified.
3535
bool m_bAdvancedRicochet;

0 commit comments

Comments
 (0)