diff options
Diffstat (limited to 'src/map/buyingstore.c')
-rw-r--r-- | src/map/buyingstore.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/buyingstore.c b/src/map/buyingstore.c index 8efffa342..a53acdbb0 100644 --- a/src/map/buyingstore.c +++ b/src/map/buyingstore.c @@ -65,10 +65,9 @@ bool buyingstore_setup(struct map_session_data* sd, unsigned char slots) void buyingstore_create(struct map_session_data* sd, int zenylimit, unsigned char result, const char* storename, const uint8* itemlist, unsigned int count) { unsigned int i, weight, listidx; - struct item_data* id; - if( !result || count == 0 ) - {// canceled, or no items + if (!result || count == 0) { + // canceled, or no items return; } @@ -107,10 +106,11 @@ void buyingstore_create(struct map_session_data* sd, int zenylimit, unsigned cha weight = sd->weight; // check item list - for( i = 0; i < count; i++ ) - {// itemlist: <name id>.W <amount>.W <price>.L + for (i = 0; i < count; i++) { + // itemlist: <name id>.W <amount>.W <price>.L unsigned short nameid, amount; int price, idx; + struct item_data* id; nameid = RBUFW(itemlist,i*8+0); amount = RBUFW(itemlist,i*8+2); |