From 5e4e89b6ee6b7445a452700f6c80b612c69e2736 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 6 Mar 2012 19:40:05 +0000 Subject: World storage names are now case-INsensitive git-svn-id: http://mc-server.googlecode.com/svn/trunk@373 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/WorldStorage.cpp | 4 ++-- 1 file 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; -- cgit v1.2.3