Prechádzať zdrojové kódy

* Fixed SQL char server crashing when loading the item_db

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1336 54d463be-8e91-2dee-dedb-b68131a5f0ec
celest 20 rokov pred
rodič
commit
8cdf7b2840
2 zmenil súbory, kde vykonal 4 pridanie a 3 odobranie
  1. 1 0
      Changelog-SVN.txt
  2. 3 3
      src/char_sql/char.c

+ 1 - 0
Changelog-SVN.txt

@@ -6,6 +6,7 @@ Date	Added
           upgrade your mysql as a result of the new adoption system.  Thank you
              -MouseJstr
 
+	* Fixed SQL char server crashing when loading the item_db, my bad ^^; [celest]
         * More ANSI C++/C conformance fixes [SVN 1334: MouseJstr]
 	* Added auto save guild data (only guardian HP and owner guild ID for now,
 	  both cached) every 5 minutes during WOE [celest]

+ 3 - 3
src/char_sql/char.c

@@ -3438,12 +3438,12 @@ int do_init(int argc, char **argv){
 
 	printf("charserver configuration reading done.....\n");
 
-	//Read ItemDB
-	do_init_itemdb();
-
 	inter_init((argc > 2) ? argv[2] : inter_cfgName); // inter server ÃʱâÈ­
 	printf("interserver configuration reading done.....\n");
 
+	//Read ItemDB
+	do_init_itemdb();
+
 	printf("start char server initializing.....\n");
 	mmo_char_sql_init();
 	printf("char server initializing done.....\n");