feat(object): handle existing objects in CreateObject

This commit is contained in:
fallenoak committed 2026-01-13 19:54:04 -06:00
1 parent 1e13e33f2a
commit 082bc06c69
1 file changed
+11 -2
+11 -2
View File
@@ -218,8 +218,17 @@ int32_t CreateObject(CDataStore* msg, uint32_t time) {
auto existingObject = GetUpdateObject(guid, &reenabled);
if (existingObject) {
// TODO
return 0;
CClientObjCreate::Skip(msg);
if (!FillInPartialObjectData(existingObject, existingObject->m_obj->m_guid, msg, false, true)) {
return 0;
}
if (reenabled) {
existingObject->Reenable();
}
return 1;
}
CClientObjCreate objCreate;