Procházet zdrojové kódy

The wear fuction uses 'none' and 0 if lastworn not filled fix

KevinSmarts před 6 roky
rodič
revize
6997499121
2 změnil soubory, kde provedl 14 přidání a 4 odebrání
  1. 7 2
      locations/bras
  2. 7 2
      locations/panties

+ 7 - 2
locations/bras

@@ -22,8 +22,13 @@ end
 if $ARGS[0] = 'wear':
 	if $ARGS[1] = '':
 		bra_none = 0
-		$braworntype = $lastwornbratype
-		brawornnumber = lastwornbranumber
+		if $lastwornbratype ! '':
+			$braworntype = $lastwornbratype
+			brawornnumber = lastwornbranumber
+		else
+			$braworntype = 'none'
+			brawornnumber = 0
+		end
 	else
 		$braworntype = $ARGS[1]
 		brawornnumber = ARGS[2]

+ 7 - 2
locations/panties

@@ -22,8 +22,13 @@ end
 if $ARGS[0] = 'wear':
 	if $ARGS[1] = '':
 		panty_none = 0
-		$pantyworntype = $lastwornpantytype
-		pantywornnumber = lastwornpantynumber
+		if $lastwornpantytype ! '':
+			$pantyworntype = $lastwornpantytype
+			pantywornnumber = lastwornpantynumber
+		else
+			$pantyworntype = 'none'
+			pantywornnumber = 0
+		end
 	else
 		$pantyworntype = $ARGS[1]
 		pantywornnumber = ARGS[2]