Skip to content

Commit 83d938d

Browse files
committed
improved:version list configure
1 parent 7587bcf commit 83d938d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

XEngine_Source/StorageModule_Config/Config_Json/Config_Json.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ BOOL CConfig_Json::Config_Json_File(LPCTSTR lpszConfigFile, XENGINE_SERVERCONFIG
211211
_tcscpy(pSt_ServerConfig->st_XCert.tszCertKey, st_JsonP2xp["tszCertKey"].asCString());
212212
}
213213

214-
if (st_JsonRoot["XVer"].empty() || (1 != st_JsonRoot["XVer"].size()))
214+
if (st_JsonRoot["XVer"].empty())
215215
{
216216
Config_IsErrorOccur = TRUE;
217217
Config_dwErrorCode = ERROR_XENGINE_BLOGIC_CONFIG_JSON_XVER;
@@ -220,9 +220,9 @@ BOOL CConfig_Json::Config_Json_File(LPCTSTR lpszConfigFile, XENGINE_SERVERCONFIG
220220
Json::Value st_JsonXVer = st_JsonRoot["XVer"];
221221

222222
pSt_ServerConfig->st_XVer.pStl_ListStorage = new list<string>;
223-
for (unsigned int i = 0; i < st_JsonXVer["StorageVersion"].size(); i++)
223+
for (unsigned int i = 0; i < st_JsonXVer.size(); i++)
224224
{
225-
pSt_ServerConfig->st_XVer.pStl_ListStorage->push_back(st_JsonXVer["StorageVersion"][i].asCString());
225+
pSt_ServerConfig->st_XVer.pStl_ListStorage->push_back(st_JsonXVer[i].asCString());
226226
}
227227
return TRUE;
228228
}

0 commit comments

Comments
 (0)