summaryrefslogtreecommitdiff
path: root/include/global.berry.h
diff options
context:
space:
mode:
authorSlawter666 <38655737+Slawter666@users.noreply.github.com>2018-09-07 11:50:23 +0100
committerSlawter666 <38655737+Slawter666@users.noreply.github.com>2018-09-07 11:50:23 +0100
commit9dec2bdef891653d10060a45417609c4d31b14c7 (patch)
treef9080cfc922a15570aeeee98d1ff695596e55ccb /include/global.berry.h
parentbc42c5054c335f4de8a6b43135673ce931991c3e (diff)
parentef62393289b7a1d2e20fe195e24830d5c1f2f973 (diff)
Merge branch 'master' of https://github.com/pret/pokeemerald into spritesheet
Diffstat (limited to 'include/global.berry.h')
-rw-r--r--include/global.berry.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/global.berry.h b/include/global.berry.h
index 5c8a43a02..8046d344e 100644
--- a/include/global.berry.h
+++ b/include/global.berry.h
@@ -1,12 +1,12 @@
#ifndef GUARD_GLOBAL_BERRY_H
#define GUARD_GLOBAL_BERRY_H
-#define BERRY_NAME_COUNT 7
+#define BERRY_NAME_LENGTH 6
#define BERRY_ITEM_EFFECT_COUNT 18
struct Berry
{
- const u8 name[BERRY_NAME_COUNT];
+ const u8 name[BERRY_NAME_LENGTH + 1];
u8 firmness;
u16 size;
u8 maxYield;
@@ -26,7 +26,7 @@ struct Berry
struct Berry2
{
- u8 name[BERRY_NAME_COUNT];
+ u8 name[BERRY_NAME_LENGTH + 1];
u8 firmness;
u16 size;
u8 maxYield;
@@ -53,7 +53,7 @@ struct EnigmaBerry
struct BattleEnigmaBerry
{
- /*0x00*/ u8 name[BERRY_NAME_COUNT];
+ /*0x00*/ u8 name[BERRY_NAME_LENGTH + 1];
/*0x07*/ u8 holdEffect;
/*0x08*/ u8 itemEffect[BERRY_ITEM_EFFECT_COUNT];
/*0x1A*/ u8 holdEffectParam;