Selaa lähdekoodia

Fixed variable name.

Pawel Jarosz 2 vuotta sitten
vanhempi
commit
47aebe312d
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      examples/timer/repeating_timer/repeating_timer.gui_script

+ 1 - 1
examples/timer/repeating_timer/repeating_timer.gui_script

@@ -18,7 +18,7 @@ function init(self)
 
 	timer.delay(interval, repeating, function()		-- <4>
 		self.count = self.count + 1					-- <5>
-		local p = self.time % 60					-- <6>
+		local p = self.count % 60					-- <6>
 		update_numeric(p)							-- <7>
 		update_radial(p)							-- <8>
 	end)