Ver Fonte

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
momacabu há 12 anos atrás
pai
commit
53a407406d
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/map/pc.c

+ 1 - 1
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) )