Fix reference of temporary variable (#2468)

This commit is contained in:
hatal175 2025-06-02 06:33:37 +03:00 committed by GitHub
parent 2b56ec02be
commit 8e91607e55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 6 deletions

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++;