Skip to content

Commit a1fa429

Browse files
committed
Cleaned up code in various functions
1 parent 85a8b8c commit a1fa429

File tree

4 files changed

+436
-408
lines changed

4 files changed

+436
-408
lines changed

ttyd-tools/rel/source/commonfunctions.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void *getBattlePointer()
102102
void *getMarioBattlePointer()
103103
{
104104
void *BattlePointer = getBattlePointer();
105-
if (BattlePointer == nullptr)
105+
if (!BattlePointer)
106106
{
107107
return nullptr;
108108
}
@@ -113,7 +113,7 @@ void *getMarioBattlePointer()
113113
void *getPartnerBattlePointer()
114114
{
115115
void *MarioBattlePointer = getMarioBattlePointer();
116-
if (MarioBattlePointer == nullptr)
116+
if (!MarioBattlePointer)
117117
{
118118
return nullptr;
119119
}
@@ -125,7 +125,7 @@ void *getPartnerBattlePointer()
125125
void *getActorPointer(uint32_t slot)
126126
{
127127
void *BattlePointer = getBattlePointer();
128-
if (BattlePointer == nullptr)
128+
if (!BattlePointer)
129129
{
130130
return nullptr;
131131
}

ttyd-tools/rel/source/draw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ void drawInventoryIconAndTextColumns()
413413
uint32_t Address_and_Size[2];
414414
uint32_t *tempArray = getPouchAddressAndSize(Address_and_Size);
415415

416-
if (tempArray == nullptr)
416+
if (!tempArray)
417417
{
418418
return;
419419
}

0 commit comments

Comments
 (0)