diff --git a/LuaFunctions.cpp b/LuaFunctions.cpp index 763d750..3e12fb7 100644 --- a/LuaFunctions.cpp +++ b/LuaFunctions.cpp @@ -193,7 +193,7 @@ ElunaRegister WorldObjectMethods[] = { "GetMap", &LuaWorldObject::GetMap }, #if (!defined(TBC) && !defined(CLASSIC)) { "GetPhaseMask", &LuaWorldObject::GetPhaseMask }, - { "SetPhaseMask", &LuaUnit::SetPhaseMask }, + { "SetPhaseMask", &LuaWorldObject::SetPhaseMask }, #endif { "GetInstanceId", &LuaWorldObject::GetInstanceId }, { "GetAreaId", &LuaWorldObject::GetAreaId },