From 76aa1c271954e937ce73ae38b38bf9618758c320 Mon Sep 17 00:00:00 2001 From: jsn Date: Sun, 1 Dec 2024 22:36:27 +0800 Subject: [PATCH] Initialization logic fix - intif src --- src/map/intif.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/map/intif.c b/src/map/intif.c index f58ee26de3f..eeedaa02dda 100644 --- a/src/map/intif.c +++ b/src/map/intif.c @@ -349,8 +349,8 @@ static void intif_parse_account_storage(int fd) return; } - struct storage_data* stor = NULL; - if ((stor = storage->ensure(sd, RFIFOW(fd, 8))) == NULL) + struct storage_data* stor = storage->ensure(sd, RFIFOW(fd, 8)); + if (stor == NULL) return; if (stor->received == true) { @@ -398,8 +398,8 @@ static void intif_send_account_storage(struct map_session_data *sd, int storage_ nullpo_retv(sd); - struct storage_data* stor = NULL; - if ((stor = storage->ensure(sd, storage_id)) == NULL) + struct storage_data* stor = storage->ensure(sd, storage_id); + if (stor == NULL) return; // Assert that at this point in the code, both flags are true.