try some more stuff

This commit is contained in:
DarthArgus
2014-10-27 20:33:41 -07:00
parent 154aa76d66
commit 0c4829542d
6 changed files with 16 additions and 15 deletions
@@ -85,7 +85,7 @@ GenericAPICore::GenericAPICore(const char *game, const char *hosts[],
GenericAPICore::~GenericAPICore()
//----------------------------------------
{
for (std::vector<GenericConnection *>::iterator conIter = m_serverConnections.begin(); conIter != m_serverConnections.end(); conIter++)
for (std::vector<GenericConnection *>::iterator conIter = m_serverConnections.begin(); conIter != m_serverConnections.end(); ++conIter)
{
GenericConnection *con = *conIter;
delete con;
@@ -198,7 +198,7 @@ void GenericAPICore::process()
}
}
for (std::vector<GenericConnection *>::iterator conIter = m_serverConnections.begin(); conIter != m_serverConnections.end(); conIter++)
for (std::vector<GenericConnection *>::iterator conIter = m_serverConnections.begin(); conIter != m_serverConnections.end(); ++conIter)
{
GenericConnection *con = *conIter;
con->process();
@@ -245,7 +245,7 @@ void GenericAPICore::countOpenConnections()
m_currentConnections = 0;
m_maxConnections = m_serverConnections.size();
for (std::vector<GenericConnection *>::iterator conIter = m_serverConnections.begin(); conIter != m_serverConnections.end(); conIter++)
for (std::vector<GenericConnection *>::iterator conIter = m_serverConnections.begin(); conIter != m_serverConnections.end(); ++conIter)
{
GenericConnection *con = *conIter;
if (con->isConnected())