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;