diff options
author | brianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-11-05 18:25:15 +0000 |
---|---|---|
committer | brianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-11-05 18:25:15 +0000 |
commit | a25c820fba6bd86fe2fb50e2b5b512295583522d (patch) | |
tree | a45d4175ec6f42a6210062db234e15a1c4a3ad9d /src/map/npc.c | |
parent | d56ec5e7bd37bea674aba3c0041390e95926fc5e (diff) | |
download | hercules-a25c820fba6bd86fe2fb50e2b5b512295583522d.tar.gz hercules-a25c820fba6bd86fe2fb50e2b5b512295583522d.tar.bz2 hercules-a25c820fba6bd86fe2fb50e2b5b512295583522d.tar.xz hercules-a25c820fba6bd86fe2fb50e2b5b512295583522d.zip |
- Added LOOK_*** script constants, same names as from map.h
- Changed atcommand "@changelook" to changelook script command in custom quest_shop.txt
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16862 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index cb40c85c5..41069c015 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1577,7 +1577,7 @@ static int npc_selllist_sub(struct map_session_data* sd, int n, unsigned short* script_cleararray_pc(sd, "@sold_attribute", (void*)0); script_cleararray_pc(sd, "@sold_identify", (void*)0); - for( j = 0; MAX_SLOTS > j; j++ ) + for( j = 0; j < MAX_SLOTS; j++ ) {// clear each of the card slot entries key_card[j] = 0; snprintf(card_slot, sizeof(card_slot), "@sold_card%d", j + 1); @@ -1598,7 +1598,7 @@ static int npc_selllist_sub(struct map_session_data* sd, int n, unsigned short* script_setarray_pc(sd, "@sold_attribute", i, (void*)(intptr_t)sd->status.inventory[idx].attribute, &key_attribute); script_setarray_pc(sd, "@sold_identify", i, (void*)(intptr_t)sd->status.inventory[idx].identify, &key_identify); - for( j = 0; MAX_SLOTS > j; j++ ) + for( j = 0; j < MAX_SLOTS; j++ ) {// store each of the cards from the equipment in the array snprintf(card_slot, sizeof(card_slot), "@sold_card%d", j + 1); script_setarray_pc(sd, card_slot, i, (void*)(intptr_t)sd->status.inventory[idx].card[j], &key_card[j]); |