Make t local

This commit is contained in:
Fierelier 2023-08-10 02:28:04 +02:00
parent 9e4a8b1915
commit 4bc128788f
1 changed files with 1 additions and 1 deletions

View File

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