Skip to content

Commit

Permalink
Initialization logic fix - intif src
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonch35 committed Dec 1, 2024
1 parent abc42a0 commit 76aa1c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/map/intif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 76aa1c2

Please sign in to comment.