From 1876d1abf423924fa4109bb9abba34032665330c Mon Sep 17 00:00:00 2001 From: Agent Agrimar Date: Mon, 15 May 2023 00:39:26 -0400 Subject: [PATCH] Properly assign held physcannon entity to pass into commander goal trace --- sp/src/game/server/hl2/hl2_player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sp/src/game/server/hl2/hl2_player.cpp b/sp/src/game/server/hl2/hl2_player.cpp index 1cd610bb..cefdeeb4 100644 --- a/sp/src/game/server/hl2/hl2_player.cpp +++ b/sp/src/game/server/hl2/hl2_player.cpp @@ -1814,7 +1814,7 @@ bool CHL2_Player::CommanderFindGoal( commandgoal_t *pGoal ) // Get either our +USE entity or the gravity gun entity CBaseEntity *pHeldEntity = GetPlayerHeldEntity(this); if ( !pHeldEntity ) - PhysCannonGetHeldEntity( GetActiveWeapon() ); + pHeldEntity = PhysCannonGetHeldEntity( GetActiveWeapon() ); CTraceFilterSkipTwoEntities filter( this, pHeldEntity, COLLISION_GROUP_INTERACTIVE_DEBRIS ); #else