From 7cdd96ce6cfccf008ed944e9d56e1ffa5a39fcab Mon Sep 17 00:00:00 2001 From: Kermalis <29823718+Kermalis@users.noreply.github.com> Date: Mon, 4 Sep 2023 02:46:34 -0400 Subject: [PATCH] Forgor const --- include/friend_area.h | 2 +- src/friend_area.c | 2 +- src/wigglytuff_shop.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/friend_area.h b/include/friend_area.h index 934fce8c4..7d23a5c51 100644 --- a/include/friend_area.h +++ b/include/friend_area.h @@ -21,7 +21,7 @@ typedef struct unkStruct_8092638 extern bool8 *gFriendAreas; bool8 *GetBoughtFriendAreas(void); -u8 *GetFriendAreaDescription(u8); +const u8 *GetFriendAreaDescription(u8); const u8 *GetFriendAreaName(u8); s32 GetFriendAreaPrice(u8); bool8 GetFriendAreaStatus(u8); diff --git a/src/friend_area.c b/src/friend_area.c index a8078d445..14ba10cbd 100644 --- a/src/friend_area.c +++ b/src/friend_area.c @@ -230,7 +230,7 @@ void sub_8092578(u8 *buffer, u8 index, bool8 printPrice) strcpy(buffer, sFriendAreaNames[index]); } -u8 *GetFriendAreaDescription(u8 index) +const u8 *GetFriendAreaDescription(u8 index) { return sFriendAreaDescriptions[index]; } diff --git a/src/wigglytuff_shop.c b/src/wigglytuff_shop.c index 4d9dc0337..6e432a9c7 100644 --- a/src/wigglytuff_shop.c +++ b/src/wigglytuff_shop.c @@ -480,7 +480,7 @@ void sub_8021878(void) void sub_8021894(void) { - u8 *string; + const u8 *string; u32 y; u32 x; s32 index;