Просмотр исходного кода

Closed potential loophole in logic.

KevinSmarts 8 лет назад
Родитель
Сommit
2ffc62cbca
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      locations/changingroom

+ 4 - 2
locations/changingroom

@@ -5,8 +5,10 @@ if $ARGS[0] = 'view_swim_list':
 	if $loc = 'bass' or ($loc = 'etoexhib' and temper >= 20) or (temper >= 20 and month >= 5 and month <= 9):
 		if $clothingworntype ! 'swimwear':
 			if $clothingworntype = 'nude':
-				$normalclothingworntype = $lastwornclothingtype
-				normalclothingwornno = lastwornclothingnumber
+				if $lastwornclothingtype ! 'swimwear':
+					$normalclothingworntype = $lastwornclothingtype
+					normalclothingwornno = lastwornclothingnumber
+				end
 			else
 				$normalclothingworntype = $clothingworntype
 				normalclothingwornno = clothingwornnumber