summaryrefslogtreecommitdiff
path: root/src/map/battle.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2017-11-24 07:24:07 +0100
committerHaru <haru@dotalux.com>2017-11-24 07:24:07 +0100
commit34a18710fe25efaead50cf10b18a27d1d74e7c09 (patch)
tree04303cdd4d21186fbd42ecee3898d9e6015669ae /src/map/battle.h
parentc1c8d6b7424b6673bd444b0905171c06602feaa4 (diff)
downloadhercules-34a18710fe25efaead50cf10b18a27d1d74e7c09.tar.gz
hercules-34a18710fe25efaead50cf10b18a27d1d74e7c09.tar.bz2
hercules-34a18710fe25efaead50cf10b18a27d1d74e7c09.tar.xz
hercules-34a18710fe25efaead50cf10b18a27d1d74e7c09.zip
Allow using the skill DB accessors on non-skill attacks (skill_id = 0)
This suppresses an assertion in the skill DB accessors when called with `skill_id = 0` (such as during normal attacks). In such case, they'll now return an appropriate zero value, as it happened before 2b4bfa5d0. Fixes #1909 Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/battle.h')
-rw-r--r--src/map/battle.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/battle.h b/src/map/battle.h
index 4a63887c4..3ab3e2ddd 100644
--- a/src/map/battle.h
+++ b/src/map/battle.h
@@ -54,6 +54,7 @@ struct status_data;
enum {
// Flag of the final calculation
+ BF_NONE = 0x0000,
BF_WEAPON = 0x0001,
BF_MAGIC = 0x0002,
BF_MISC = 0x0004,