Fixed a bug with statpoint.txt reading and giving too much stat points
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1133 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
fdbe7b1fb2
commit
3bdcf34341
@ -1,6 +1,8 @@
|
|||||||
Date Added
|
Date Added
|
||||||
|
|
||||||
02/18
|
02/18
|
||||||
|
* Fixed a bug with statpoint.txt reading and giving too much stat points,
|
||||||
|
thanks to Benz / eAthenaC [celest]
|
||||||
* Fixed client errors when pecopeco Lord Knights/Paladins log in with a weapon
|
* Fixed client errors when pecopeco Lord Knights/Paladins log in with a weapon
|
||||||
equipped [celest]
|
equipped [celest]
|
||||||
* Added bAddRace2 -- check item_bonus.txt [celest]
|
* Added bAddRace2 -- check item_bonus.txt [celest]
|
||||||
|
@ -7065,7 +7065,7 @@ int pc_readdb(void)
|
|||||||
|
|
||||||
// スキルツリ?
|
// スキルツリ?
|
||||||
memset(statp,0,sizeof(statp));
|
memset(statp,0,sizeof(statp));
|
||||||
i=0;
|
i=1;
|
||||||
j=45; // base points
|
j=45; // base points
|
||||||
fp=fopen("db/statpoint.txt","r");
|
fp=fopen("db/statpoint.txt","r");
|
||||||
if(fp == NULL){
|
if(fp == NULL){
|
||||||
@ -7077,6 +7077,8 @@ int pc_readdb(void)
|
|||||||
continue;
|
continue;
|
||||||
if ((j=atoi(line))<0)
|
if ((j=atoi(line))<0)
|
||||||
j=0;
|
j=0;
|
||||||
|
if (i >= MAX_LEVEL)
|
||||||
|
break;
|
||||||
statp[i]=j;
|
statp[i]=j;
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user