auto-git:

[change] src/runtime-three/runtime-host.ts
This commit is contained in:
2026-04-22 17:05:36 +02:00
parent ff7b31a34b
commit b61f88213b

View File

@@ -1182,13 +1182,13 @@ export class RuntimeHost {
this.runtimeScene.spawn.position
);
case "actor": {
const target = rig.target;
const activeNpc =
this.runtimeScene.npcDefinitions.find(
(candidate) =>
candidate.actorId === rig.target.actorId && candidate.active
(candidate) => candidate.actorId === target.actorId && candidate.active
) ??
this.runtimeScene.npcDefinitions.find(
(candidate) => candidate.actorId === rig.target.actorId
(candidate) => candidate.actorId === target.actorId
) ??
null;