summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-02 20:46:28 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-02 20:46:28 +0000
commit6bc3fadc19ddf799de891a1c4684128e45b7a629 (patch)
treed92d8b86717ca2f299e832ed122524a11dcadca4 /src
parent1bdf177a0bbcf3885ca5f8fad35923591eb37bd5 (diff)
downloadhercules-6bc3fadc19ddf799de891a1c4684128e45b7a629.tar.gz
hercules-6bc3fadc19ddf799de891a1c4684128e45b7a629.tar.bz2
hercules-6bc3fadc19ddf799de891a1c4684128e45b7a629.tar.xz
hercules-6bc3fadc19ddf799de891a1c4684128e45b7a629.zip
Follow up r16365 removed unused variable and a re-declared variable
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16368 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/skill.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index a5e671c76..c7874093f 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -7717,14 +7717,13 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
break;
case WL_READING_SB:
- if( sd )
- {
+ if( sd ) {
struct status_change *sc = status_get_sc(bl);
- int i, max_preserve = 4 * pc_checkskill(sd, WL_FREEZE_SP) + sstatus->int_ / 10 + sd->status.base_level / 10;
- for(i=SC_SPELLBOOK1; i <= SC_MAXSPELLBOOK; i++) if( sc && !sc->data[i] ) break;
- if( i == SC_MAXSPELLBOOK )
- {
+ for( i = SC_SPELLBOOK1; i <= SC_MAXSPELLBOOK; i++)
+ if( sc && !sc->data[i] )
+ break;
+ if( i == SC_MAXSPELLBOOK ) {
clif_skill_fail(sd, WL_READING_SB, USESKILL_FAIL_SPELLBOOK_READING, 0);
break;
}