diff options
author | Flipp <mysteriousragnarok@hotmail.com> | 2013-05-17 15:18:51 -0700 |
---|---|---|
committer | Flipp <mysteriousragnarok@hotmail.com> | 2013-05-17 15:18:51 -0700 |
commit | b3bc657a44a9fbdd1730f569855e25ccd0f8dd01 (patch) | |
tree | ba8dc9ee07be73d2cbb62e0a1f83d29d1fa6b7c8 /src/map/atcommand.c | |
parent | 4ef9258f0f618857ed5d9e2f9e07f33dc6d13559 (diff) | |
parent | 9afe7f28d0e3f4c9bc3abba22d8055ae7dc46f45 (diff) | |
download | hercules-b3bc657a44a9fbdd1730f569855e25ccd0f8dd01.tar.gz hercules-b3bc657a44a9fbdd1730f569855e25ccd0f8dd01.tar.bz2 hercules-b3bc657a44a9fbdd1730f569855e25ccd0f8dd01.tar.xz hercules-b3bc657a44a9fbdd1730f569855e25ccd0f8dd01.zip |
Merge pull request #26 from Earisu/master
HPM Update
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index d831ca200..65da7aa24 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -5340,12 +5340,12 @@ ACMD(skillid) { iter = db_iterator(skilldb_name2id); for( data = iter->first(iter,&key); iter->exists(iter); data = iter->next(iter,&key) ) { - idx = skill->get_index(db_data2i(data)); + idx = skill->get_index(DB->data2i(data)); if (strnicmp(key.str, message, skillen) == 0 || strnicmp(skill_db[idx].desc, message, skillen) == 0) { - sprintf(atcmd_output, msg_txt(1164), db_data2i(data), skill_db[idx].desc, key.str); // skill %d: %s (%s) + sprintf(atcmd_output, msg_txt(1164), DB->data2i(data), skill_db[idx].desc, key.str); // skill %d: %s (%s) clif->message(fd, atcmd_output); } else if ( found < MAX_SKILLID_PARTIAL_RESULTS && ( stristr(key.str,message) || stristr(skill_db[idx].desc,message) ) ) { - snprintf(partials[found++], MAX_SKILLID_PARTIAL_RESULTS_LEN, msg_txt(1164), db_data2i(data), skill_db[idx].desc, key.str); + snprintf(partials[found++], MAX_SKILLID_PARTIAL_RESULTS_LEN, msg_txt(1164), DB->data2i(data), skill_db[idx].desc, key.str); } } @@ -9156,7 +9156,7 @@ ACMD(channel) { iter = db_iterator(channel->banned); for( data = iter->first(iter,&key); iter->exists(iter); data = iter->next(iter,&key) ) { - struct hChSysBanEntry * entry = db_data2ptr(data); + struct hChSysBanEntry * entry = DB->data2ptr(data); if( !isA ) sprintf(atcmd_output, msg_txt(1444), entry->name);// - %s %s |