From f1227ef3fcc21edbdd3d9644ce3d5f07ccc643b2 Mon Sep 17 00:00:00 2001 From: Chris Maltby Date: Thu, 11 Apr 2024 11:21:06 +0100 Subject: [PATCH] Fix typo in actor set position --- src/lib/compiler/scriptBuilder.ts | 2 +- src/lib/events/eventActorSetPosition.js | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/lib/compiler/scriptBuilder.ts b/src/lib/compiler/scriptBuilder.ts index b5d6c14b6..021225575 100644 --- a/src/lib/compiler/scriptBuilder.ts +++ b/src/lib/compiler/scriptBuilder.ts @@ -2633,7 +2633,7 @@ extern void __mute_mask_${symbol}; this._addNL(); }; - actorSetPositionToToScriptValues = ( + actorSetPositionToScriptValues = ( actorId: string, valueX: ScriptValue, valueY: ScriptValue, diff --git a/src/lib/events/eventActorSetPosition.js b/src/lib/events/eventActorSetPosition.js index 582e99b77..6b0db27a1 100644 --- a/src/lib/events/eventActorSetPosition.js +++ b/src/lib/events/eventActorSetPosition.js @@ -67,13 +67,8 @@ const fields = [ ]; const compile = (input, helpers) => { - const { actorSetPositionToToScriptValues } = helpers; - actorSetPositionToToScriptValues( - input.actorId, - input.x, - input.y, - input.units - ); + const { actorSetPositionToScriptValues } = helpers; + actorSetPositionToScriptValues(input.actorId, input.x, input.y, input.units); }; module.exports = {