void CWorld::LoadStringAction() { StringLoader* pLoader = StringLoader::getSingleton(); if (pLoader == NULL) return; pLoader->LoadString(eSTRING_ACTION, g_iCountry); int nIdx; const char* strtmp = NULL; CAction::_map::iterator iter = CAction::_mapdata.begin(); CAction::_map::iterator eiter = CAction::_mapdata.end(); for (;iter != eiter; ++iter) { CAction* pData = (*iter).second; if (pData == NULL) continue; nIdx = pData->GetIndex(); if (nIdx >= 0) { strtmp = pLoader->getData(eSTRING_ACTION, nIdx, 0); if (strtmp != NULL) pData->SetName( strtmp ); strtmp = pLoader->getData(eSTRING_ACTION, nIdx, 1); if (strtmp != NULL) pData->SetDesc( strtmp ); } } pLoader->release(eSTRING_ACTION); }