From 6752784decebd8398519fa899197b1f0a46b6eed Mon Sep 17 00:00:00 2001 From: Uladzislau Nikalayevich Date: Wed, 6 Nov 2024 19:25:43 +0300 Subject: [PATCH] Update Server/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp --- Server/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Server/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp b/Server/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp index 328351a9b9..b4d1de641f 100644 --- a/Server/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp +++ b/Server/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp @@ -989,6 +989,7 @@ bool CStaticFunctionDefinitions::SetElementData(CElement* pElement, const char* // Unsubscribe all the players if (lastSyncType == ESyncType::SUBSCRIBE && syncType != ESyncType::SUBSCRIBE) m_pPlayerManager->ClearElementData(pElement, szName); + // Set its custom data pElement->SetCustomData(szName, Variable, syncType); return true;