Browse Source

Follow up to 472b885ca83627922d2c2208b46ff6d9b8308a7d
* Added brackets after if

Jittapan Pluemsumran 8 years ago
parent
commit
eb8ea91f5b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      npc/other/CashShop_Functions.txt

+ 2 - 1
npc/other/CashShop_Functions.txt

@@ -319,11 +319,12 @@ function	script	F_CashReduceStat	{
 	
 	if((readparam(.@type) + .@amount) < 1) return;
 	
-	if(.@itemid)
+	if(.@itemid) {
 		if(countitem(.@itemid))
 			delitem .@itemid,1;
 		else
 			return;
+	}
 	StatusPoint += needed_status_point(.@type, .@amount);
 	statusup2 .@type,.@amount;
 	return;