diff options
author | Haru <haru@dotalux.com> | 2018-11-13 15:56:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-13 15:56:30 +0100 |
commit | 78def4452300ef252370c6de9f030ed52d70322a (patch) | |
tree | 0de3beb78c8fa5c46e78dbfe89b11d2279fdbdaa | |
parent | 6a022c010cebb0acfaaaa0430e151ca513a106ac (diff) | |
parent | 11d99fd9214c2502a1b8ad766eb753b4c3914b42 (diff) | |
download | hercules-78def4452300ef252370c6de9f030ed52d70322a.tar.gz hercules-78def4452300ef252370c6de9f030ed52d70322a.tar.bz2 hercules-78def4452300ef252370c6de9f030ed52d70322a.tar.xz hercules-78def4452300ef252370c6de9f030ed52d70322a.zip |
Merge pull request #2265 from dastgirp/coverity/fix1
Fixed Logically Dead Code in status.c
-rw-r--r-- | src/map/status.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/map/status.c b/src/map/status.c index 2bd3700b3..370432ce7 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -10557,20 +10557,9 @@ static bool status_is_immune_to_status(struct status_change *sc, enum sc_type ty if (type >= SC_COMMON_MIN && type <= SC_COMMON_MAX) // Confirmed. return true; // Immune to status ailements switch (type) { - case SC_DEEP_SLEEP: case SC__CHAOS: - case SC_BURNING: - case SC_STUN: - case SC_SLEEP: - case SC_CURSE: case SC_STONE: - case SC_POISON: - case SC_BLIND: - case SC_SILENCE: - case SC_BLOODING: - case SC_FREEZE: case SC_FROSTMISTY: - case SC_COLD: case SC_TOXIN: case SC_PARALYSE: case SC_VENOMBLEED: @@ -10586,20 +10575,9 @@ static bool status_is_immune_to_status(struct status_change *sc, enum sc_type ty if (type >= SC_COMMON_MIN && type <= SC_COMMON_MAX) return true; // Immune to status ailements switch (type) { - case SC_POISON: - case SC_BLIND: - case SC_STUN: - case SC_SILENCE: case SC__CHAOS: case SC_STONE: - case SC_SLEEP: - case SC_BLOODING: - case SC_CURSE: - case SC_BURNING: case SC_FROSTMISTY: - case SC_FREEZE: - case SC_COLD: - case SC_FEAR: case SC_TOXIN: case SC_PARALYSE: case SC_VENOMBLEED: @@ -10608,7 +10586,6 @@ static bool status_is_immune_to_status(struct status_change *sc, enum sc_type ty case SC_PYREXIA: case SC_OBLIVIONCURSE: case SC_LEECHESEND: - case SC_DEEP_SLEEP: case SC_SATURDAY_NIGHT_FEVER: case SC__BODYPAINT: case SC__ENERVATION: |