Fixed a couple compiling warnings
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16375 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
36c9f0887b
commit
93c0688b11
@ -96,13 +96,11 @@ int pc_class2idx(int class_) {
|
|||||||
return 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;
|
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));
|
return pc_group_id2level(pc_get_group_id(sd));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 *tsc;
|
||||||
struct status_change_entry *tsce;
|
struct status_change_entry *tsce;
|
||||||
|
|
||||||
int i;
|
int i = 0;
|
||||||
enum sc_type type;
|
enum sc_type type;
|
||||||
|
|
||||||
if(skillid > 0 && skilllv <= 0) return 0; // celest
|
if(skillid > 0 && skilllv <= 0) return 0; // celest
|
||||||
|
@ -2410,14 +2410,12 @@ int unit_free(struct block_list *bl, clr_type clrtype)
|
|||||||
case BL_ELEM: {
|
case BL_ELEM: {
|
||||||
struct elemental_data *ed = (TBL_ELEM*)bl;
|
struct elemental_data *ed = (TBL_ELEM*)bl;
|
||||||
struct map_session_data *sd = ed->master;
|
struct map_session_data *sd = ed->master;
|
||||||
if( clrtype >= 0 ) {
|
if( elemental_get_lifetime(ed) > 0 )
|
||||||
if( elemental_get_lifetime(ed) > 0 )
|
elemental_save(ed);
|
||||||
elemental_save(ed);
|
else {
|
||||||
else {
|
intif_elemental_delete(ed->elemental.elemental_id);
|
||||||
intif_elemental_delete(ed->elemental.elemental_id);
|
if( sd )
|
||||||
if( sd )
|
sd->status.ele_id = 0;
|
||||||
sd->status.ele_id = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if( sd )
|
if( sd )
|
||||||
sd->ed = NULL;
|
sd->ed = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user