Make t local

This commit is contained in:
Fierelier 2023-08-10 02:28:04 +02:00
parent 9e4a8b1915
commit 4bc128788f

View File

@ -163,7 +163,7 @@ local frameSec = 0
local lastSec = 0 local lastSec = 0
function trackFps() function trackFps()
frameSec = frameSec + 1 frameSec = frameSec + 1
t = engine_time_get() local t = engine_time_get()
if t - lastSec >= 1000 then if t - lastSec >= 1000 then
framerate = frameSec framerate = frameSec
lastSec = t lastSec = t