summaryrefslogtreecommitdiff
path: root/src/map/homunculus.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-09-21 10:59:19 +0200
committerHaru <haru@dotalux.com>2013-09-21 10:59:19 +0200
commit0d12201adecaf21fccfee8e62a2d2a5582535ae3 (patch)
tree950c673626548818c1ea8abd0165541d40192da8 /src/map/homunculus.h
parent51241f66ad6e78cf56b91c41e524c00a1d5abeb2 (diff)
downloadhercules-0d12201adecaf21fccfee8e62a2d2a5582535ae3.tar.gz
hercules-0d12201adecaf21fccfee8e62a2d2a5582535ae3.tar.bz2
hercules-0d12201adecaf21fccfee8e62a2d2a5582535ae3.tar.xz
hercules-0d12201adecaf21fccfee8e62a2d2a5582535ae3.zip
Corrected invalid values assigned to enum homun_type variables
- Fixes a warning in clang-5.0.0 (and a potentially incorrect/undefined behavior of the related code) Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/homunculus.h')
-rw-r--r--src/map/homunculus.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/map/homunculus.h b/src/map/homunculus.h
index 4b35c0992..a90faf2e2 100644
--- a/src/map/homunculus.h
+++ b/src/map/homunculus.h
@@ -53,13 +53,13 @@ struct homun_data {
struct status_data base_status, battle_status;
struct status_change sc;
struct regen_data regen;
- struct s_homunculus_db *homunculusDB; //[orn]
- struct s_homunculus homunculus; //[orn]
+ struct s_homunculus_db *homunculusDB; //[orn]
+ struct s_homunculus homunculus; //[orn]
- struct map_session_data *master; //pointer back to its master
- int hungry_timer; //[orn]
+ struct map_session_data *master; //pointer back to its master
+ int hungry_timer; //[orn]
unsigned int exp_next;
- char blockskill[MAX_SKILL]; // [orn]
+ char blockskill[MAX_SKILL]; // [orn]
};
struct homun_skill_tree_entry {
@@ -74,9 +74,10 @@ struct homun_skill_tree_entry {
}; // Celest
enum homun_type {
- HT_REG = 0x1,
- HT_EVO = 0x2,
- HT_S = 0x4,
+ HT_REG, // Regular Homunculus
+ HT_EVO, // Evolved Homunculus
+ HT_S, // Homunculus S
+ HT_INVALID = -1, // Invalid Homunculus
};
/* homunculus.c interface */