diff options
-rw-r--r-- | src/char/char.c | 2 | ||||
-rw-r--r-- | src/map/script.c | 2 | ||||
-rw-r--r-- | src/map/status.c | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/char/char.c b/src/char/char.c index 82206cbd9..292973449 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -500,7 +500,7 @@ int mmo_char_tosql(int char_id, struct mmo_charstatus* p) strcat(save_status, " status"); } - if( p->bank_vault != cp->bank_vault || p->mod_exp != cp->mod_exp || p->mod_drop != cp->mod_drop || p->mod_death != p->mod_death ) { + if( p->bank_vault != cp->bank_vault || p->mod_exp != cp->mod_exp || p->mod_drop != cp->mod_drop || p->mod_death != cp->mod_death ) { if( SQL_ERROR == SQL->Query(sql_handle, "REPLACE INTO `%s` (`account_id`,`bank_vault`,`base_exp`,`base_drop`,`base_death`) VALUES ('%d','%d','%d','%d','%d')",account_data_db,p->account_id,p->bank_vault,p->mod_exp,p->mod_drop,p->mod_death) ) { Sql_ShowDebug(sql_handle); errors++; diff --git a/src/map/script.c b/src/map/script.c index a9ad69954..20485d880 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -910,7 +910,7 @@ const char* parse_variable(const char* p) { const char *var = p; if( ( p[0] == '+' && p[1] == '+' && (type = C_ADD_PRE) ) // pre ++ - || ( p[1] == '-' && p[1] == '-' && (type = C_SUB_PRE) ) // pre -- + || ( p[0] == '-' && p[1] == '-' && (type = C_SUB_PRE) ) // pre -- ) { var = p = script->skip_space(&p[2]); } diff --git a/src/map/status.c b/src/map/status.c index 7d354718d..290882e05 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -2071,9 +2071,9 @@ int status_calc_mob_(struct mob_data* md, enum e_status_calc_opt opt) { struct status_data *masterstatus = status->get_base_status(mbl); if ( masterstatus ) { if( battle_config.slaves_inherit_speed&(masterstatus->mode&MD_CANMOVE?1:2) ) - masterstatus->speed = masterstatus->speed; - if( masterstatus->speed < 2 ) /* minimum for the unit to function properly */ - masterstatus->speed = 2; + mstatus->speed = masterstatus->speed; + if( mstatus->speed < 2 ) /* minimum for the unit to function properly */ + mstatus->speed = 2; } } |