summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-06 20:40:05 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-06 20:40:05 +0100
commit5e4e89b6ee6b7445a452700f6c80b612c69e2736 (patch)
treed5a77183b1184b6ff6caa0cbae43cb0aa55f5873 /source
parentThat was not a good place to use ARRAYCOUNT() (diff)
downloadcuberite-5e4e89b6ee6b7445a452700f6c80b612c69e2736.tar
cuberite-5e4e89b6ee6b7445a452700f6c80b612c69e2736.tar.gz
cuberite-5e4e89b6ee6b7445a452700f6c80b612c69e2736.tar.bz2
cuberite-5e4e89b6ee6b7445a452700f6c80b612c69e2736.tar.lz
cuberite-5e4e89b6ee6b7445a452700f6c80b612c69e2736.tar.xz
cuberite-5e4e89b6ee6b7445a452700f6c80b612c69e2736.tar.zst
cuberite-5e4e89b6ee6b7445a452700f6c80b612c69e2736.zip
Diffstat (limited to 'source')
-rw-r--r--source/WorldStorage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/WorldStorage.cpp b/source/WorldStorage.cpp
index a3d9b50b2..4c433aef4 100644
--- a/source/WorldStorage.cpp
+++ b/source/WorldStorage.cpp
@@ -274,14 +274,14 @@ void cWorldStorage::InitSchemas(void)
m_Schemas.push_back(new cWSSForgetful(m_World));
// Add new schemas here
- if (m_StorageSchemaName == "Default")
+ if (stricmp(m_StorageSchemaName.c_str(), "default") == 0)
{
m_SaveSchema = m_Schemas.front();
return;
}
for (cWSSchemaList::iterator itr = m_Schemas.begin(); itr != m_Schemas.end(); ++itr)
{
- if ((*itr)->GetName() == m_StorageSchemaName)
+ if (stricmp((*itr)->GetName().c_str(), m_StorageSchemaName.c_str()) == 0)
{
m_SaveSchema = *itr;
return;