From 12fee9a8cca2495419253c2dfe9e1eaefe1787a9 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Fri, 27 Sep 2013 22:35:59 -0700 Subject: Fix the trade bug --- src/map/pc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map') 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 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; -- cgit v1.2.3-70-g09d2