Fix reference of temporary variable (#2468)

This commit is contained in:
hatal175
2025-06-02 06:33:37 +03:00
committed by GitHub
parent ec3c5db2fd
commit 68a92e221f
+5 -6
View File
@@ -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++;