Skip to content
Permalink
Browse files

Fix #967 (Add file and function names in "infinite running script")

  • Loading branch information...
Jusonex committed Jul 19, 2019
1 parent bd7f2c5 commit 80fe71869d6a94682a972894d90727786970734c
Showing with 2 additions and 4 deletions.
  1. +1 −2 Client/mods/deathmatch/logic/lua/CLuaMain.cpp
  2. +1 −2 Server/mods/deathmatch/logic/lua/CLuaMain.cpp
@@ -206,8 +206,7 @@ void CLuaMain::InstructionCountHook(lua_State* luaVM, lua_Debug* pDebug)
strAbortInf += pLuaMain->GetScriptName();

// Error out
lua_pushstring(luaVM, strAbortInf);
lua_error(luaVM);
luaL_error(luaVM, strAbortInf);
}
}
}
@@ -237,8 +237,7 @@ void CLuaMain::InstructionCountHook(lua_State* luaVM, lua_Debug* pDebug)
strAbortInf += pLuaMain->GetScriptName();

// Error out
lua_pushstring(luaVM, strAbortInf);
lua_error(luaVM);
luaL_error(luaVM, strAbortInf);
}
}
}

0 comments on commit 80fe718

Please sign in to comment.
You can’t perform that action at this time.