summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-07 15:41:40 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-07 15:41:40 +0000
commitb4d8c6be13e3755ec9104f5317b88069860e5aef (patch)
treefec2a5a2beea7c914cfbde18119c0d74f25d350b /src/map
parent120b4028f5f30b7e8f989d0f2418147d0a8cf82a (diff)
downloadhercules-b4d8c6be13e3755ec9104f5317b88069860e5aef.tar.gz
hercules-b4d8c6be13e3755ec9104f5317b88069860e5aef.tar.bz2
hercules-b4d8c6be13e3755ec9104f5317b88069860e5aef.tar.xz
hercules-b4d8c6be13e3755ec9104f5317b88069860e5aef.zip
- Fixed item info not displaying the found item id... ~.~
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7036 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/atcommand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 0fff320cd..4045e8951 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -9445,7 +9445,7 @@ int atcommand_iteminfo(
//, "Lure/Scroll"}; No need, type 11 items are converted to type 2 upon loading [Skotlex]
struct item_data *item_data, *item_array[MAX_SEARCH];
- int i, item_id=0, count = 1;
+ int i, count = 1;
if (!message || !*message) {
clif_displaymessage(fd, "Please, enter Item name or its ID (usage: @iteminfo <item_name_or_ID>).");
@@ -9467,7 +9467,7 @@ int atcommand_iteminfo(
for (i = 0; i < count; i++) {
item_data = item_array[i];
sprintf(atcmd_output, "Item: '%s'/'%s'[%d] (%d) Type: %s | Extra Effect: %s",
- item_data->name,item_data->jname,item_data->slot,item_id,
+ item_data->name,item_data->jname,item_data->slot,item_data->nameid,
item_data->type < 12 ? itype[item_data->type] : "BUG!",
(item_data->script==NULL)? "None" : "With script"
);