From 7a71caca6ed2d87a012982a6f68f3f3417096896 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sat, 14 Dec 2019 20:33:01 +0800 Subject: [PATCH] Fix filename collision of string cache between shards on the same host --- code/ryzom/client/src/net_manager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/ryzom/client/src/net_manager.cpp b/code/ryzom/client/src/net_manager.cpp index 9ec1b750d..8dc9e9006 100644 --- a/code/ryzom/client/src/net_manager.cpp +++ b/code/ryzom/client/src/net_manager.cpp @@ -2315,11 +2315,11 @@ void impulseStringResp(NLMISC::CBitMemStream &impulse) //----------------------------------------------- void impulseReloadCache(NLMISC::CBitMemStream &impulse) { - uint32 timestamp;; + uint32 timestamp, shardId; impulse.serial(timestamp); - nlwarning("TODO_SHARD_ID %u", (unsigned int)timestamp); + impulse.serial(shardId); if (PermanentlyBanned) return; - STRING_MANAGER::CStringManagerClient::instance()->loadCache(timestamp, 1999); // TODO_SHARD_ID + STRING_MANAGER::CStringManagerClient::instance()->loadCache(timestamp, shardId); } //-----------------------------------------------