From ce5da5fcc9ed2ce984eaf2aa1a9e0cfaba460bdb Mon Sep 17 00:00:00 2001 From: Inkfish Date: Tue, 31 May 2011 11:43:19 +0000 Subject: Fixed a typo in buyingstore_create. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14842 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 2 ++ src/map/buyingstore.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index a50e7f65c..3e7b2cbc7 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -1,5 +1,7 @@ Date Added +2011/05/31 + * Fixed a typo in buyingstore_create. [Inkfish] 2011/05/30 * Fixed script command 'warpguild' looking for an attached player even when it is not needed (bugreport:4941, since r2674, related r14840). [Ai4rei] - Documented special map names recognized by the command. diff --git a/src/map/buyingstore.c b/src/map/buyingstore.c index 5b9734819..94f390c10 100644 --- a/src/map/buyingstore.c +++ b/src/map/buyingstore.c @@ -145,7 +145,7 @@ void buyingstore_create(struct map_session_data* sd, int zenylimit, unsigned cha if( i ) {// duplicate check. as the client does this too, only malicious intent should be caught here - ARR_FIND( 0, i, listidx, sd->buyingstore.items[i].nameid == nameid ); + ARR_FIND( 0, i, listidx, sd->buyingstore.items[listidx].nameid == nameid ); if( listidx != i ) {// duplicate ShowWarning("buyingstore_create: Found duplicate item on buying list (nameid=%hu, amount=%hu, account_id=%d, char_id=%d).\n", nameid, amount, sd->status.account_id, sd->status.char_id); -- cgit v1.2.3-60-g2f50