Skip to content

Commit

Permalink
GetStoredActorFromObject: pass on param
Browse files Browse the repository at this point in the history
so also GA_NO_SELF and GA_NO_HIDDEN can be checked
  • Loading branch information
lynxlynxlynx committed Dec 21, 2024
1 parent 5043525 commit 9debc8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gemrb/core/GameScript/Matching.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Actor>(tar);
if (target && target->ValidTarget(ga_flags)) {
if (target && target->ValidTarget(ga_flags, Sender)) {
return tar;
}
return NULL; // target invalid/gone
Expand Down

0 comments on commit 9debc8c

Please sign in to comment.