- fixed: Since model skins are managed by the texture manager, the model code may not delete them itself.

This commit is contained in:
Christoph Oelckers 2013-10-11 12:57:46 +02:00
parent 0f8ed0123f
commit ac0c07a51b
1 changed files with 1 additions and 4 deletions

View File

@ -222,10 +222,7 @@ FDMDModel::~FDMDModel()
// clean up
if (skins != NULL)
{
for (i=0;i<info.numSkins;i++)
{
if (skins[i]!=NULL) delete skins[i];
}
// skins are managed by the texture manager so they must not be deleted here.
delete [] skins;
}