From 68d8811b18bf96495f078799178ab75a371e3433 Mon Sep 17 00:00:00 2001 From: "ALLEN-PC\\acj30" Date: Fri, 24 Jan 2025 10:40:33 -0600 Subject: [PATCH] Fix SetRelationship input not using !activator --- sp/src/game/server/basecombatcharacter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sp/src/game/server/basecombatcharacter.cpp b/sp/src/game/server/basecombatcharacter.cpp index b7a2692d..668f1525 100644 --- a/sp/src/game/server/basecombatcharacter.cpp +++ b/sp/src/game/server/basecombatcharacter.cpp @@ -3482,13 +3482,13 @@ void CBaseCombatCharacter::AddRelationship( const char *pszRelationship, CBaseEn bool bFoundEntity = false; // Try to get pointer to an entity of this name - CBaseEntity *entity = gEntList.FindEntityByName( NULL, entityString ); + CBaseEntity *entity = gEntList.FindEntityByName( NULL, entityString, this, pActivator ); while( entity ) { // make sure you catch all entities of this name. bFoundEntity = true; AddEntityRelationship(entity, disposition, priority ); - entity = gEntList.FindEntityByName( entity, entityString ); + entity = gEntList.FindEntityByName( entity, entityString, this, pActivator ); } if( !bFoundEntity )