From f272b0304244e84ab036f94ba0fe1818424ba59e Mon Sep 17 00:00:00 2001 From: Vale the Violet Mote Date: Sun, 10 Aug 2025 10:56:52 -0400 Subject: [PATCH] PerformIngameSpawn Save=True not spawning object fix (#277) --- src/LuaEngine/methods/GlobalMethods.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LuaEngine/methods/GlobalMethods.h b/src/LuaEngine/methods/GlobalMethods.h index 21d32c5..e5c8061 100644 --- a/src/LuaEngine/methods/GlobalMethods.h +++ b/src/LuaEngine/methods/GlobalMethods.h @@ -1716,7 +1716,7 @@ namespace LuaGlobalFunctions delete creature; creature = new Creature(); - if (!creature->LoadFromDB(db_guid, map, true)) + if (!creature->LoadCreatureFromDB(db_guid, map, true, true)) { delete creature; Eluna::Push(L); @@ -1786,7 +1786,7 @@ namespace LuaGlobalFunctions object = new GameObject(); // this will generate a new lowguid if the object is in an instance - if (!object->LoadFromDB(guidLow, map)) + if (!object->LoadGameObjectFromDB(guidLow, map, true)) { delete object; Eluna::Push(L);