From 9debc8c0f0fca2d6eef291ad0ac88430595bf4d8 Mon Sep 17 00:00:00 2001 From: Jaka Kranjc Date: Fri, 20 Dec 2024 17:35:59 +0100 Subject: [PATCH] GetStoredActorFromObject: pass on param so also GA_NO_SELF and GA_NO_HIDDEN can be checked --- gemrb/core/GameScript/Matching.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gemrb/core/GameScript/Matching.cpp b/gemrb/core/GameScript/Matching.cpp index 7a7ef450c6..29255e78e7 100644 --- a/gemrb/core/GameScript/Matching.cpp +++ b/gemrb/core/GameScript/Matching.cpp @@ -328,7 +328,7 @@ Scriptable* GetStoredActorFromObject(Scriptable* Sender, const Object* oC, int g if (Sender->CurrentActionTarget) { tar = core->GetGame()->GetActorByGlobalID(Sender->CurrentActionTarget); target = Scriptable::As(tar); - if (target && target->ValidTarget(ga_flags)) { + if (target && target->ValidTarget(ga_flags, Sender)) { return tar; } return NULL; // target invalid/gone