mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Eluna fix linux warnings
This commit is contained in:
@@ -115,7 +115,6 @@ namespace LuaAura
|
||||
|
||||
int Remove(lua_State* L, Aura* aura)
|
||||
{
|
||||
int duration = Eluna::CHECKVAL<int>(L, 2);
|
||||
#ifdef MANGOS
|
||||
aura->GetHolder()->RemoveAura(aura->GetEffIndex());
|
||||
#else
|
||||
|
||||
@@ -62,7 +62,6 @@ ENDCALL();
|
||||
lua_State* L = sEluna->L; \
|
||||
uint32 _LuaEvent = EVENT; \
|
||||
int _LuaStackTop = lua_gettop(L); \
|
||||
EntryBind* _LuaBindMap = sEluna->BINDMAP; \
|
||||
lua_rawgeti(L, LUA_REGISTRYINDEX, _Luabind); \
|
||||
Eluna::Push(L, _LuaEvent);
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ void Eluna::GetScripts(std::string path, ScriptPaths& scripts)
|
||||
}
|
||||
|
||||
ACE_DIRENT *directory = 0;
|
||||
while (directory = dir.read())
|
||||
while ((directory = dir.read()))
|
||||
{
|
||||
// Skip the ".." and "." files.
|
||||
if (ACE::isdotdir(directory->d_name))
|
||||
@@ -741,7 +741,7 @@ EventMgr::LuaEvent::~LuaEvent()
|
||||
luaL_unref(E.L, LUA_REGISTRYINDEX, funcRef); // Free lua function ref
|
||||
}
|
||||
|
||||
bool EventMgr::LuaEvent::Execute(uint64 time, uint32 diff)
|
||||
bool EventMgr::LuaEvent::Execute(uint64 /*time*/, uint32 /*diff*/)
|
||||
{
|
||||
bool remove = (calls == 1);
|
||||
if (!remove)
|
||||
|
||||
Reference in New Issue
Block a user