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://svn.code.sf.net/p/rathena/svn/trunk@16911 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
53533120d8
commit
53a407406d
@ -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) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user