diff options
author | shennetsind <ind@henn.et> | 2013-04-22 19:17:32 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-04-22 19:17:32 -0300 |
commit | 66ae0f173f62bd96aca51676605f80a076f8fd26 (patch) | |
tree | 504837beef570ab171bf25c1490a4ded31d0b516 | |
parent | 3a1fc27bd123e4315d87e023efbcf8cd5304b7a3 (diff) | |
download | hercules-66ae0f173f62bd96aca51676605f80a076f8fd26.tar.gz hercules-66ae0f173f62bd96aca51676605f80a076f8fd26.tar.bz2 hercules-66ae0f173f62bd96aca51676605f80a076f8fd26.tar.xz hercules-66ae0f173f62bd96aca51676605f80a076f8fd26.zip |
Fixed logical error/compiler warning
Special Thanks to bgamez23
Signed-off-by: shennetsind <ind@henn.et>
-rw-r--r-- | src/map/pc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 88fdf8337..41c09fd33 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -4471,7 +4471,7 @@ int pc_cart_delitem(struct map_session_data *sd,int n,int amount,int type,e_log_ struct item_data * data; nullpo_retr(1, sd); - if( sd->status.cart[n].nameid == 0 || sd->status.cart[n].amount < amount || !data ) + if( sd->status.cart[n].nameid == 0 || sd->status.cart[n].amount < amount || !(data = itemdb_exists(sd->status.cart[n].nameid)) ) return 1; logs->pick_pc(sd, log_type, -amount, &sd->status.cart[n],data); |