diff --git a/GlobalMethods.h b/GlobalMethods.h index 14dabe6..12f52e1 100644 --- a/GlobalMethods.h +++ b/GlobalMethods.h @@ -1705,7 +1705,7 @@ namespace LuaGlobalFunctions GameObject* object = new GameObject; uint32 guidLow = map->GenerateLowGuid(); - if (!object->Create(guidLow, objectInfo->entry, map, phase, x, y, z, o, 0.0f, 0.0f, 0.0f, 0.0f, 0, GO_STATE_READY)) + if (!object->Create(guidLow, objectInfo->entry, map, phase, Position(x, y, z, o), G3D::Quat(), 0, GO_STATE_READY)) { delete object; Eluna::Push(L); diff --git a/WorldObjectMethods.h b/WorldObjectMethods.h index d4470bd..ad648a8 100644 --- a/WorldObjectMethods.h +++ b/WorldObjectMethods.h @@ -668,7 +668,7 @@ namespace LuaWorldObject #ifndef TRINITY Eluna::Push(L, obj->SummonGameObject(entry, x, y, z, o, respawnDelay)); #else - Eluna::Push(L, obj->SummonGameObject(entry, x, y, z, o, 0, 0, 0, 0, respawnDelay)); + Eluna::Push(L, obj->SummonGameObject(entry, Position(x, y, z, o), G3D::Quat(), respawnDelay)); #endif return 1; }