Eluna fix linux warnings

This commit is contained in:
Rochet2
2014-06-02 12:13:21 +03:00
committed by Foereaper
parent 16e7a71980
commit 9a1f8c7884
3 changed files with 2 additions and 4 deletions

View File

@@ -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)