summaryrefslogtreecommitdiffstats
path: root/source/cMonsterConfig.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-01 10:12:54 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-01 10:12:54 +0100
commitbb49f0e021fb1fbefad44d944233fb1cf72c495c (patch)
treeebb0f2b40a3987eddf126c368237c0c60e4e6518 /source/cMonsterConfig.cpp
parentFixed a sigsegv on *nix (cFile double-closing files) (diff)
downloadcuberite-bb49f0e021fb1fbefad44d944233fb1cf72c495c.tar
cuberite-bb49f0e021fb1fbefad44d944233fb1cf72c495c.tar.gz
cuberite-bb49f0e021fb1fbefad44d944233fb1cf72c495c.tar.bz2
cuberite-bb49f0e021fb1fbefad44d944233fb1cf72c495c.tar.lz
cuberite-bb49f0e021fb1fbefad44d944233fb1cf72c495c.tar.xz
cuberite-bb49f0e021fb1fbefad44d944233fb1cf72c495c.tar.zst
cuberite-bb49f0e021fb1fbefad44d944233fb1cf72c495c.zip
Diffstat (limited to '')
-rw-r--r--source/cMonsterConfig.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/cMonsterConfig.cpp b/source/cMonsterConfig.cpp
index 1c3a38fea..c37641f2f 100644
--- a/source/cMonsterConfig.cpp
+++ b/source/cMonsterConfig.cpp
@@ -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());