summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
author(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-11 15:58:58 +0000
committer(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-11 15:58:58 +0000
commit94661807ec510d48ca6dd135f0e02a3a835bc614 (patch)
treefae3295a165e320a8d65fd6e0eb8430212099dc7 /src/map/pc.c
parent77cac05d9b256039f7b2b5b00f901ad76fddfe86 (diff)
downloadhercules-94661807ec510d48ca6dd135f0e02a3a835bc614.tar.gz
hercules-94661807ec510d48ca6dd135f0e02a3a835bc614.tar.bz2
hercules-94661807ec510d48ca6dd135f0e02a3a835bc614.tar.xz
hercules-94661807ec510d48ca6dd135f0e02a3a835bc614.zip
* Moved all changes in the SVN to a new SVN-Changelog.txt
* Synchronise storage as well when saving character * Added fix for super novices' Guardian Angel system crashing * Check if login server is online before setting character to online (in SQL) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1076 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 512a097ed..0734c0630 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4518,7 +4518,7 @@ int pc_damage(struct block_list *src,struct map_session_data *sd,int damage)
if (s_class.job == 23) {
if ((i=pc_nextbaseexp(sd))<=0)
i=sd->status.base_exp;
- if ((j=sd->status.base_exp*1000/i)>=990 && j<=1000)
+ if (i>0 && (j=sd->status.base_exp*1000/i)>=990 && j<=1000)
sd->state.snovice_flag = 4;
}