From 4bc128788f886427d188e18c5df6ec9a2fdee417 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Thu, 10 Aug 2023 02:28:04 +0200 Subject: [PATCH] Make t local --- mods/main/script/game.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/main/script/game.lua b/mods/main/script/game.lua index 6a48f75..04ac1b7 100644 --- a/mods/main/script/game.lua +++ b/mods/main/script/game.lua @@ -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