mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-10 11:53:14 +08:00
fix(lua): return false when transaction fails to start
This commit is contained in:
@@ -138,7 +138,7 @@ namespace YimMenu::Lua
|
|||||||
|
|
||||||
if (!txn || !txn->m_Running)
|
if (!txn || !txn->m_Running)
|
||||||
{
|
{
|
||||||
lua_pushboolean(state, true);
|
lua_pushboolean(state, false);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user