Fixed some compiler warnings

This commit is contained in:
xalduin 2010-06-07 09:38:38 +08:00 committed by Magnus Auvinen
parent 8625f42e30
commit be5e19d2bd
2 changed files with 3 additions and 3 deletions

View file

@ -554,9 +554,9 @@ void CServer::SendMap(int ClientId)
{ {
//get the name of the map without his path //get the name of the map without his path
char * pMapShortName = &g_Config.m_SvMap[0]; char * pMapShortName = &g_Config.m_SvMap[0];
for(int i = 0; i < 128; i++) for(int i = 0; i < 127; i++)
{ {
if(g_Config.m_SvMap[i] == '/' || g_Config.m_SvMap[i] == '\\' && i+1 < 128) if(g_Config.m_SvMap[i] == '/' || g_Config.m_SvMap[i] == '\\')
pMapShortName = &g_Config.m_SvMap[i+1]; pMapShortName = &g_Config.m_SvMap[i+1];
} }

View file

@ -519,6 +519,6 @@ void CMenus::DemoSetParentDirectory()
for(i = 0; i < 256; i++) for(i = 0; i < 256; i++)
{ {
if(i >= Stop) if(i >= Stop)
m_aCurrentDemoFolder[i] = NULL; m_aCurrentDemoFolder[i] = 0;
} }
} }