Procházet zdrojové kódy

fix to bug on import of atcommand_athena, bugreport:5207

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15431 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind před 13 roky
rodič
revize
7fa39f6f68
1 změnil soubory, kde provedl 4 přidání a 3 odebrání
  1. 4 3
      src/map/atcommand.c

+ 4 - 3
src/map/atcommand.c

@@ -9258,10 +9258,11 @@ void atcommand_parse_aliases(char aliases[1024],AtCommandInfo* base) {
 		return;
 
 	for(i = 0; i < max;i++) {
-		AtCommandInfo* atcommand;
+		AtCommandInfo* atcommand = NULL;
 		normalize_name(str[i]," ");//trim over
-		if( strdb_exists(atcommand_db, str[i]) ) {
-			ShowError("atcommand_conf: duplicate alises error: %s (from %s)\n",str[i],base->command);
+		if( (atcommand = strdb_get(atcommand_db, str[i])) ) {
+			atcommand->level = base->level;
+			atcommand->level2 = base->level2;
 			continue;
 		}