1
0
Fork 0

cerr don't belong in CVS

use SG_LOG! use SG_LOG! use SG_LOG! use SG_LOG! use SG_LOG! use SG_LOG!
use SG_LOG! use SG_LOG! use SG_LOG! use SG_LOG! use SG_LOG! use SG_LOG!
This commit is contained in:
mfranz 2006-10-12 22:12:09 +00:00
parent 8f7df58c94
commit cc3ad61175

View file

@ -262,24 +262,24 @@ FGAIManager::loadScenarioFile(const std::string& filename)
ssgBranch * FGAIManager::getModel(const string& path)
{
ModelVecIterator i = loadedModels.begin();
cerr << "Reference count summary " << endl;
//cerr << "Reference count summary " << endl;
int count = 0;
while (i != loadedModels.end())
{
count += i->getNumRefs() -1;
cerr << "Model " << i->getPath() << " has reference count of " << i->getNumRefs() << " ";
//cerr << "Model " << i->getPath() << " has reference count of " << i->getNumRefs() << " ";
if (i->getNumRefs() == 1)
{
i = loadedModels.erase(i);
cerr << "[ Deleted ]" << endl;
//cerr << "[ Deleted ]" << endl;
}
else
{
i++;
cerr << endl;
//cerr << endl;
}
}
cerr << "Reference summary end : " << count << "models allocated" << endl;
//cerr << "Reference summary end : " << count << "models allocated" << endl;
i = loadedModels.begin();
while (i != loadedModels.end())