diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-10-15 09:07:06 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-10-15 09:07:06 -0400 |
commit | 5c2179bc9afa809fa3b915bea0d75f62f90f0644 (patch) | |
tree | bd7926369bfc540ebf925d070e1102576292d9bf /src/inventory.cpp | |
parent | 5adabb82443b9b10b25cdd8b4db3cfe890e36fa1 (diff) |
quest fixes
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r-- | src/inventory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp index 83c40f6..3690de5 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -49,14 +49,14 @@ int Inventory::addItem(ITEM_ID id,unsigned char count){ if(item[i].id==id){ item[i].count+=count; #ifdef DEBUG - DEBUG_printf("Gave player %u more %s(s).\n",count,itemName[i]); + DEBUG_printf("Gave player %u more %s(s).\n",count,itemName[item[i].id]); #endif // DEBUG return 0; }else if(!item[i].count){ item[i].id=id; item[i].count=count; #ifdef DEBUG - DEBUG_printf("Gave player %u %s(s).\n",count,itemName[i]); + DEBUG_printf("Gave player %u %s(s).\n",count,itemName[item[i].id]); #endif // DEBUG return 0; } |