Skip to content

Commit

Permalink
Cleanup LoadMessage variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
bbepis committed Feb 11, 2024
1 parent 63454f6 commit 10ec382
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/overlay021/ov21_021D5600.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,17 @@ static inline BOOL inline_ov21_021D5764_1 (int param0, int param1)

static Strbuf* LoadMessage (int bankID, int entryID, int heapID)
{
MessageLoader *v0 = MessageLoader_Init(1, NARC_INDEX_MSGDATA__PL_MSG, bankID, heapID);
MessageLoader *messageLoader = MessageLoader_Init(1, NARC_INDEX_MSGDATA__PL_MSG, bankID, heapID);

if (v0) {
Strbuf* v1 = Strbuf_Init(256, heapID);
if (messageLoader) {
Strbuf* strbuf = Strbuf_Init(256, heapID);

if (v1) {
MessageLoader_GetStrbuf(v0, entryID, v1);
if (strbuf) {
MessageLoader_GetStrbuf(messageLoader, entryID, strbuf);
}

MessageLoader_Free(v0);
return v1;
MessageLoader_Free(messageLoader);
return strbuf;
}

return NULL;
Expand Down

0 comments on commit 10ec382

Please sign in to comment.