summaryrefslogtreecommitdiff
path: root/src/friend_area.c
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2021-11-10 08:43:51 -0800
committerGitHub <noreply@github.com>2021-11-10 08:43:51 -0800
commit561ea52847f5a88dc6a9a79dbfc5c40f421cace5 (patch)
tree0566b8fe1cf46f027696ac7fc4db9febd739ee39 /src/friend_area.c
parent681ca68ac96e8d39f49eb2c9f42e5c1e1041f5e0 (diff)
Luminous cave (#72)
* fully decomp luminous cave * remove header file. this one isn't ready yet * doc few fields and func * doc more of luminous cave
Diffstat (limited to 'src/friend_area.c')
-rw-r--r--src/friend_area.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/friend_area.c b/src/friend_area.c
index 4854c23..15a527e 100644
--- a/src/friend_area.c
+++ b/src/friend_area.c
@@ -15,7 +15,7 @@ extern const char gUnknown_81098A4;
extern const char gUnknown_81098AC;
extern void ExpandPlaceholdersBuffer(u8 *buffer, const char *r2, ...);
-extern void sub_8090FEC(u32, u32 *r1, u32);
+extern void sub_8090FEC(u32, u8 *r1, u32);
const struct FriendAreaSettings gFriendAreaSettings[NUM_FRIEND_AREAS] =
{
@@ -605,11 +605,11 @@ void sub_8092558(u8 *buffer, u8 index)
void sub_8092578(u8 *buffer, u8 index, u8 r2)
{
// I think this is when we buy the friend area from wigglytuff
- u32 temp[5];
+ u8 priceBuffer[0x14];
if(r2)
{
- sub_8090FEC(gFriendAreaSettings[index].price, (&temp[0]), 1);
- ExpandPlaceholdersBuffer(buffer, &gUnknown_81098AC, gFriendAreaNames[index], 96, temp);
+ sub_8090FEC(gFriendAreaSettings[index].price, priceBuffer, 1);
+ ExpandPlaceholdersBuffer(buffer, &gUnknown_81098AC, gFriendAreaNames[index], 96, priceBuffer);
}
else
{