1
0
Pārlūkot izejas kodu

[fixed] array entry could be set for base item_mosturiser which would result in massive amounts of product

Kevin_Smarts 2 gadi atpakaļ
vecāks
revīzija
7d740556cf
2 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. 1 1
      locations/cikl.qsrc
  2. 4 0
      locations/saveupdater.qsrc

+ 1 - 1
locations/cikl.qsrc

@@ -1207,7 +1207,7 @@ gs 'uni_lessons', 'cikl'
 !!------------------------------------------------------------------------------------------------------------------------
 
 !!resetting moisturizer so it can be used in the morning regardless
-item_moisturizer['time'] = totminut
+item_moisturizer_time = totminut
 
 if bcream_used >= 1:
 	bcream_used = 0

+ 4 - 0
locations/saveupdater.qsrc

@@ -1169,6 +1169,10 @@ if ((100*version_major +version_minor)*100+version_revision)*100+version_patch
 		workKafe = 0
 		workKafe['job'] = 1
 	end
+	if item_moisturizer['time'] > 0:
+		item_moisturizer_time = item_moisturizer['time']
+		killvar 'item_moisturizer', 'time'
+	end
 end