From 53429d838e8fd622aa2fb3d2a5bf94a5779cc45e Mon Sep 17 00:00:00 2001 From: "T.J. McGrath-Daly" Date: Mon, 15 Nov 2021 10:37:24 +0800 Subject: [PATCH] Fix: Lua script debugging loading problem Signed-off-by: T.J. McGrath-Daly --- Code/Framework/AzCore/AzCore/Script/ScriptContextDebug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Framework/AzCore/AzCore/Script/ScriptContextDebug.cpp b/Code/Framework/AzCore/AzCore/Script/ScriptContextDebug.cpp index e28a289c9e..0a8ecf2b22 100644 --- a/Code/Framework/AzCore/AzCore/Script/ScriptContextDebug.cpp +++ b/Code/Framework/AzCore/AzCore/Script/ScriptContextDebug.cpp @@ -731,7 +731,7 @@ void AZ::LuaHook(lua_State* l, lua_Debug* ar) //} } - if (doBreak) + if (doBreak && bp->m_lineNumber > 0) { context->m_luaDebug = ar; context->m_breakCallback(context, bp);