From 3a791b60705a86733221579714d8aa24948aa382 Mon Sep 17 00:00:00 2001 From: momacabu Date: Sun, 11 Nov 2012 05:45:02 +0000 Subject: Fixed bugreport:6452 where you weren't able to remove your cart if you weren't merchant/alchemist/blacksmith/etc. It also fixes the previously not working removal of cart when jobchanging. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16911 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/pc.c b/src/map/pc.c index f93aa8835..e2a224c84 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -7448,7 +7448,7 @@ int pc_setcart(struct map_session_data *sd,int type) { if( type < 0 || type > MAX_CARTS ) return 1;// Never trust the values sent by the client! [Skotlex] - if( pc_checkskill(sd,MC_PUSHCART) <= 0 ) + if( pc_checkskill(sd,MC_PUSHCART) <= 0 && type != 0 ) return 1;// Push cart is required if( type == 0 && pc_iscarton(sd) ) -- cgit v1.2.3-70-g09d2