From a4367ad879d92c4bac58efa9a3b8565ca7456681 Mon Sep 17 00:00:00 2001 From: Cekis Date: Sat, 13 Nov 2021 03:12:15 -0500 Subject: [PATCH] Fixed issue with PlayerQuestData parsing - server is RUNNING --- .../sharedGame/src/shared/quest/PlayerQuestData.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/engine/shared/library/sharedGame/src/shared/quest/PlayerQuestData.cpp b/engine/shared/library/sharedGame/src/shared/quest/PlayerQuestData.cpp index 841f584b..29f20d49 100755 --- a/engine/shared/library/sharedGame/src/shared/quest/PlayerQuestData.cpp +++ b/engine/shared/library/sharedGame/src/shared/quest/PlayerQuestData.cpp @@ -259,8 +259,8 @@ namespace Archive char temp[200]; Command c; - size_t commandCount; - size_t baselineCommandCount; //lint !e578 hides a symbol elsewhere + int32_t commandCount; + int32_t baselineCommandCount; //lint !e578 hides a symbol elsewhere Archive::get(source, commandCount); Archive::get(source, baselineCommandCount); @@ -274,7 +274,7 @@ namespace Archive // We need to sort the quests by age SortableQuestList sortedQuests; - for (size_t i = 0; i < commandCount; ++i) + for (int32_t i = 0; i < commandCount; ++i) { Archive::get(source, c.cmd); Archive::get(source, c.key); @@ -314,8 +314,8 @@ namespace Archive char temp[200]; AutoDeltaMap::Command c; - Archive::put(target, countCharacter(buffer,':')); - Archive::put(target, static_cast(0)); // baselineCommandCount + Archive::put(target, static_cast (countCharacter(buffer,':'))); + Archive::put(target, static_cast (0)); // baselineCommandCount int tempPos = 0; for (std::string::const_iterator i=buffer.begin(); i!=buffer.end(); ++i)