소스 검색

* Fixed itemgroup_db that being reseted when read import file. http://rathena.org/board/tracker/issue-8419-cant-not-open-any-itemgroup/
* Fixed typo for maxsp bonus as follow up of 96443cd. Thank Baalberith

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>

Cydh Ramdh 11 년 전
부모
커밋
2d35b03bf7
2개의 변경된 파일3개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 3
      src/map/itemdb.c
  2. 2 2
      src/map/status.c

+ 1 - 3
src/map/itemdb.c

@@ -769,7 +769,6 @@ static void itemdb_read_itemgroup(const char* basedir, bool silent)
 {
 	char filepath[256];
 	sprintf(filepath, "%s/%s", basedir, "item_group_db.txt");
-	memset(&itemgroup_db, 0, sizeof(itemgroup_db));
 	itemdb_read_itemgroup_sub(filepath, silent);
 	return;
 }
@@ -1537,8 +1536,7 @@ static void itemdb_read(void) {
 	else
 		itemdb_readdb();
 
-	
-	
+	memset(&itemgroup_db, 0, sizeof(itemgroup_db));
 	
 	for(i=0; i<ARRAYLENGTH(dbsubpath); i++){
 		int n1 = strlen(db_path)+strlen(dbsubpath[i])+1;

+ 2 - 2
src/map/status.c

@@ -2604,8 +2604,8 @@ static int status_get_spbonus(struct block_list *bl, enum e_status_bonus type) {
 			struct map_session_data *sd = map_id2sd(bl->id);
 			int8 i;
 
-			bonus += sd->hprate;
-			bonus -= 100; //Default hprate is 100, so it should be add 0%
+			bonus += sd->sprate;
+			bonus -= 100; //Default sprate is 100, so it should be add 0%
 
 			if((i=pc_checkskill(sd,HP_MEDITATIO)) > 0)
 				bonus += i;