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:
parent
8f7df58c94
commit
cc3ad61175
1 changed files with 5 additions and 5 deletions
|
@ -262,24 +262,24 @@ FGAIManager::loadScenarioFile(const std::string& filename)
|
||||||
ssgBranch * FGAIManager::getModel(const string& path)
|
ssgBranch * FGAIManager::getModel(const string& path)
|
||||||
{
|
{
|
||||||
ModelVecIterator i = loadedModels.begin();
|
ModelVecIterator i = loadedModels.begin();
|
||||||
cerr << "Reference count summary " << endl;
|
//cerr << "Reference count summary " << endl;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
while (i != loadedModels.end())
|
while (i != loadedModels.end())
|
||||||
{
|
{
|
||||||
count += i->getNumRefs() -1;
|
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)
|
if (i->getNumRefs() == 1)
|
||||||
{
|
{
|
||||||
i = loadedModels.erase(i);
|
i = loadedModels.erase(i);
|
||||||
cerr << "[ Deleted ]" << endl;
|
//cerr << "[ Deleted ]" << endl;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
i++;
|
i++;
|
||||||
cerr << endl;
|
//cerr << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cerr << "Reference summary end : " << count << "models allocated" << endl;
|
//cerr << "Reference summary end : " << count << "models allocated" << endl;
|
||||||
i = loadedModels.begin();
|
i = loadedModels.begin();
|
||||||
|
|
||||||
while (i != loadedModels.end())
|
while (i != loadedModels.end())
|
||||||
|
|
Loading…
Add table
Reference in a new issue