From ac359e696f162090840dab488a6ef4981d35bbda Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 18 May 2013 17:37:33 -0700 Subject: Tweak a little memory management in char-server --- src/map/npc.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/map/npc.cpp') diff --git a/src/map/npc.cpp b/src/map/npc.cpp index c08a0e7..440d1a1 100644 --- a/src/map/npc.cpp +++ b/src/map/npc.cpp @@ -854,8 +854,7 @@ int npc_selllist(struct map_session_data *sd, int n, return 1; nameid = sd->status.inventory[item_list[i * 2] - 2].nameid; if (nameid == 0 || - sd->status.inventory[item_list[i * 2] - 2].amount < - item_list[i * 2 + 1]) + sd->status.inventory[item_list[i * 2] - 2].amount < item_list[i * 2 + 1]) return 1; if (sd->trade_partner != 0) return 2; // cant sell while trading -- cgit v1.2.3-70-g09d2