Skip to content

Commit 8280197

Browse files
authored
Merge pull request #237 from AgentAgrimar/master
Assign Held Physcannon Entity to Pass into Commander Goal Trace
2 parents 9e6035b + 1876d1a commit 8280197

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sp/src/game/server/hl2/hl2_player.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1814,7 +1814,7 @@ bool CHL2_Player::CommanderFindGoal( commandgoal_t *pGoal )
18141814
// Get either our +USE entity or the gravity gun entity
18151815
CBaseEntity *pHeldEntity = GetPlayerHeldEntity(this);
18161816
if ( !pHeldEntity )
1817-
PhysCannonGetHeldEntity( GetActiveWeapon() );
1817+
pHeldEntity = PhysCannonGetHeldEntity( GetActiveWeapon() );
18181818

18191819
CTraceFilterSkipTwoEntities filter( this, pHeldEntity, COLLISION_GROUP_INTERACTIVE_DEBRIS );
18201820
#else

0 commit comments

Comments
 (0)