diff options
author | Haru <haru@dotalux.com> | 2020-05-03 21:35:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-03 21:35:49 +0200 |
commit | 21fd90c8c066a59dd41bb8a2c85e85b72ea6b9d6 (patch) | |
tree | bc5690ee69f74b4cbf25342b69955d6e7bad2cce /src/map/pc.c | |
parent | 5f47379d6f5bba08a41be2a4a2604d36d3bce37a (diff) | |
parent | c6baa02f18075da2abffe532ce0c87483c36ad9d (diff) | |
download | hercules-21fd90c8c066a59dd41bb8a2c85e85b72ea6b9d6.tar.gz hercules-21fd90c8c066a59dd41bb8a2c85e85b72ea6b9d6.tar.bz2 hercules-21fd90c8c066a59dd41bb8a2c85e85b72ea6b9d6.tar.xz hercules-21fd90c8c066a59dd41bb8a2c85e85b72ea6b9d6.zip |
Merge pull request #2690 from Kenpachi2k13/operator_use_fix
Fix usage of *= operator
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index d8bae7b87..a8ed4430e 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -8325,7 +8325,7 @@ static int pc_dead(struct map_session_data *sd, struct block_list *src) base_penalty *= 2; if (sd->status.mod_death != 100) - base_penalty *= sd->status.mod_death / 100; + base_penalty = base_penalty * sd->status.mod_death / 100; sd->status.base_exp -= min(sd->status.base_exp, base_penalty); clif->updatestatus(sd, SP_BASEEXP); @@ -8350,7 +8350,7 @@ static int pc_dead(struct map_session_data *sd, struct block_list *src) job_penalty *= 2; if (sd->status.mod_death != 100) - job_penalty *= sd->status.mod_death / 100; + job_penalty = job_penalty * sd->status.mod_death / 100; sd->status.job_exp -= min(sd->status.job_exp, job_penalty); clif->updatestatus(sd, SP_JOBEXP); |