From 8343a8489052407983d50e3e6804570e409c8604 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Wed, 11 Jan 2012 23:40:01 +0000 Subject: fix to bug on import of atcommand_athena, bugreport:5207 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15431 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 40d1590b1..cf12836e3 100644 --- a/src/map/atcommand.c +++ b/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; } -- cgit v1.2.3-70-g09d2