From 4b30cab993a0b985089cc8d99f4a1f81309594c9 Mon Sep 17 00:00:00 2001 From: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com> Date: Sat, 31 Dec 2022 18:10:36 -0800 Subject: [PATCH] Check the correct integer type for tastudio.setplayback New lua actually has integers so this is a long instead of a double --- .../tools/Lua/Libraries/TAStudioLuaLibrary.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BizHawk.Client.EmuHawk/tools/Lua/Libraries/TAStudioLuaLibrary.cs b/src/BizHawk.Client.EmuHawk/tools/Lua/Libraries/TAStudioLuaLibrary.cs index e790dd3b15..c81de05d08 100644 --- a/src/BizHawk.Client.EmuHawk/tools/Lua/Libraries/TAStudioLuaLibrary.cs +++ b/src/BizHawk.Client.EmuHawk/tools/Lua/Libraries/TAStudioLuaLibrary.cs @@ -139,7 +139,7 @@ namespace BizHawk.Client.EmuHawk _luaLibsImpl.IsUpdateSupressed = true; int f; - if (frame is double frameNumber) + if (frame is long frameNumber) { f = (int)frameNumber; }