diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-09-27 22:35:59 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-09-27 22:35:59 -0700 |
commit | 12fee9a8cca2495419253c2dfe9e1eaefe1787a9 (patch) | |
tree | bb2b551126772a5f9fac3da5b347281823f06ac0 /src/map/pc.cpp | |
parent | d6ae15fbfae5ace5ec117c44ea1dbaa9f627c765 (diff) | |
download | tmwa-12fee9a8cca2495419253c2dfe9e1eaefe1787a9.tar.gz tmwa-12fee9a8cca2495419253c2dfe9e1eaefe1787a9.tar.bz2 tmwa-12fee9a8cca2495419253c2dfe9e1eaefe1787a9.tar.xz tmwa-12fee9a8cca2495419253c2dfe9e1eaefe1787a9.zip |
Fix the trade bug
Diffstat (limited to 'src/map/pc.cpp')
-rw-r--r-- | src/map/pc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp index bc7ef80..0068ab3 100644 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -4662,8 +4662,8 @@ int pc_checkitem(dumb_ptr<map_session_data> sd) } j++; } - while (j < MAX_INVENTORY) - sd->status.inventory[j++] = item{}; + for (k = j; k < MAX_INVENTORY; ++k) + sd->status.inventory[k] = item{}; for (k = j; k < MAX_INVENTORY; k++) sd->inventory_data[k] = NULL; |