summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-04 11:00:51 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-04 11:00:51 +0000
commit83b5f1fcc494f68448a91873bf77cbee60da74e6 (patch)
treec248360f584633032b5399e612c3c6f202175f0a /src/map
parent93e451c8629c46ec86d01c6d573e3c8dca2ed3d8 (diff)
downloadhercules-83b5f1fcc494f68448a91873bf77cbee60da74e6.tar.gz
hercules-83b5f1fcc494f68448a91873bf77cbee60da74e6.tar.bz2
hercules-83b5f1fcc494f68448a91873bf77cbee60da74e6.tar.xz
hercules-83b5f1fcc494f68448a91873bf77cbee60da74e6.zip
Fixed a couple compiling warnings
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16375 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/pc.c6
-rw-r--r--src/map/skill.c2
-rw-r--r--src/map/unit.c14
3 files changed, 9 insertions, 13 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 7d464cbc9..965636da5 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -96,13 +96,11 @@ int pc_class2idx(int class_) {
return class_;
}
-int inline pc_get_group_id(struct map_session_data *sd)
-{
+inline int pc_get_group_id(struct map_session_data *sd) {
return sd->group_id;
}
-int inline pc_get_group_level(struct map_session_data *sd)
-{
+inline int pc_get_group_level(struct map_session_data *sd) {
return pc_group_id2level(pc_get_group_id(sd));
}
diff --git a/src/map/skill.c b/src/map/skill.c
index 31ec7acd1..fd4e706a5 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -4545,7 +4545,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
struct status_change *tsc;
struct status_change_entry *tsce;
- int i;
+ int i = 0;
enum sc_type type;
if(skillid > 0 && skilllv <= 0) return 0; // celest
diff --git a/src/map/unit.c b/src/map/unit.c
index ed4035ebe..dbd71878c 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -2410,14 +2410,12 @@ int unit_free(struct block_list *bl, clr_type clrtype)
case BL_ELEM: {
struct elemental_data *ed = (TBL_ELEM*)bl;
struct map_session_data *sd = ed->master;
- if( clrtype >= 0 ) {
- if( elemental_get_lifetime(ed) > 0 )
- elemental_save(ed);
- else {
- intif_elemental_delete(ed->elemental.elemental_id);
- if( sd )
- sd->status.ele_id = 0;
- }
+ if( elemental_get_lifetime(ed) > 0 )
+ elemental_save(ed);
+ else {
+ intif_elemental_delete(ed->elemental.elemental_id);
+ if( sd )
+ sd->status.ele_id = 0;
}
if( sd )
sd->ed = NULL;