summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-18 14:00:56 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-18 14:00:56 +0000
commit1937bbe4b5f6109968393c52fa7d917bdc70038b (patch)
tree3ca902a4f334203ddba24ec7deb719188d945f74 /src
parent01a798606ae8f8a95884cebf0ecc23f446539282 (diff)
downloadhercules-1937bbe4b5f6109968393c52fa7d917bdc70038b.tar.gz
hercules-1937bbe4b5f6109968393c52fa7d917bdc70038b.tar.bz2
hercules-1937bbe4b5f6109968393c52fa7d917bdc70038b.tar.xz
hercules-1937bbe4b5f6109968393c52fa7d917bdc70038b.zip
Fixed a bug with statpoint.txt reading and giving too much stat points
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1133 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/pc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index cd2d9bb64..eac66bb97 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -7065,7 +7065,7 @@ int pc_readdb(void)
// スキルツリ?
memset(statp,0,sizeof(statp));
- i=0;
+ i=1;
j=45; // base points
fp=fopen("db/statpoint.txt","r");
if(fp == NULL){
@@ -7077,6 +7077,8 @@ int pc_readdb(void)
continue;
if ((j=atoi(line))<0)
j=0;
+ if (i >= MAX_LEVEL)
+ break;
statp[i]=j;
i++;
}