Skip to content

Commit 23e6904

Browse files
committed
Initialization logic fix - intif src
1 parent 36cd79f commit 23e6904

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/map/intif.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ static void intif_parse_account_storage(int fd)
349349
return;
350350
}
351351

352-
struct storage_data* stor = NULL;
353-
if ((stor = storage->ensure(sd, RFIFOW(fd, 8))) == NULL)
352+
struct storage_data* stor = storage->ensure(sd, RFIFOW(fd, 8));
353+
if (stor == NULL)
354354
return;
355355

356356
if (stor->received == true) {
@@ -398,8 +398,8 @@ static void intif_send_account_storage(struct map_session_data *sd, int storage_
398398

399399
nullpo_retv(sd);
400400

401-
struct storage_data* stor = NULL;
402-
if ((stor = storage->ensure(sd, storage_id)) == NULL)
401+
struct storage_data* stor = storage->ensure(sd, storage_id);
402+
if (stor == NULL)
403403
return;
404404

405405
// Assert that at this point in the code, both flags are true.

0 commit comments

Comments
 (0)