Introducing StringUtils - the place to be if you are a generic string routine :) No more sprintf()!
git-svn-id: http://mc-server.googlecode.com/svn/trunk@209 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -13,7 +13,9 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
extern std::vector<std::string> StringSplit(std::string str, std::string delim);
|
||||
|
||||
|
||||
|
||||
|
||||
struct cMonsterConfig::sAttributesStruct
|
||||
{
|
||||
@@ -61,7 +63,7 @@ void cMonsterConfig::Initialize() {
|
||||
return;
|
||||
}
|
||||
|
||||
vector<string> SplitList = StringSplit(m_pState->MonsterTypes,",");
|
||||
AStringVector SplitList = StringSplit(m_pState->MonsterTypes,",");
|
||||
for(unsigned int i = 0; i < SplitList.size(); ++i) {
|
||||
if(!SplitList[i].empty()) {
|
||||
printf("Getting Attributes for: %s \n",SplitList[i].c_str());
|
||||
|
||||
Reference in New Issue
Block a user