mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-06-18 14:20:52 +00:00
TODO edit
This commit is contained in:
committed by
Lion Kortlepel
parent
fb76b8309a
commit
8853cef809
+1
-1
@@ -653,7 +653,7 @@ int lua_Registered(lua_State* L) {
|
|||||||
if(auto it = TLuaEngine::mGlobals.find(info.name); it != TLuaEngine::mGlobals.end()){
|
if(auto it = TLuaEngine::mGlobals.find(info.name); it != TLuaEngine::mGlobals.end()){
|
||||||
lua_getglobal(it->second, info.name);
|
lua_getglobal(it->second, info.name);
|
||||||
if (lua_isfunction(it->second, -1)) {
|
if (lua_isfunction(it->second, -1)) {
|
||||||
lua_pcall(it->second, 0, 0, 0); //TODO revisit to allow arguments and return
|
lua_pcall(it->second, 0, 0, 0); //TODO revisit to allow arguments and return also we need to mutex this
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user