From 8e91607e5582feb846354aa75630905e9d8089c7 Mon Sep 17 00:00:00 2001 From: hatal175 Date: Mon, 2 Jun 2025 06:33:37 +0300 Subject: [PATCH] Fix reference of temporary variable (#2468) --- src/d/actor/d_a_obj_laundry_rope.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/d/actor/d_a_obj_laundry_rope.cpp b/src/d/actor/d_a_obj_laundry_rope.cpp index 816401bb587..f6674590acd 100644 --- a/src/d/actor/d_a_obj_laundry_rope.cpp +++ b/src/d/actor/d_a_obj_laundry_rope.cpp @@ -80,12 +80,11 @@ void daObjLndRope_c::create_init() { if (*laundryEntry == -1) { *procId = fpcM_ERROR_PROCESS_ID_e; } else { - *procId = fopAcM_createChild( - PROC_Obj_Laundry, fopAcM_GetID(this), *laundryEntry, ropePosition, - fopAcM_GetRoomNo(this), - &csXyz(0, cLib_targetAngleY(ropePosition, ropePosition + 1) + 0x4000, - -cLib_targetAngleX(ropePosition, ropePosition + 1)), - NULL, -1, 0); + csXyz childAngle(0, cLib_targetAngleY(ropePosition, ropePosition + 1) + 0x4000, + -cLib_targetAngleX(ropePosition, ropePosition + 1)); + *procId = + fopAcM_createChild(PROC_Obj_Laundry, fopAcM_GetID(this), *laundryEntry, + ropePosition, fopAcM_GetRoomNo(this), &childAngle, NULL, -1, 0); } ropePosition++;