diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map/pc.c | 4 |
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++; } |