Bugfix: changing the resolution would cause a crash.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2634 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2008-12-12 02:56:07 +00:00
parent 17a2074f1a
commit ffdfc83dcd

View File

@ -103,7 +103,7 @@ void ItemManager::removeTextures()
for(CI_type i=m_all_models.begin(); i!=m_all_models.end(); ++i)
{
ssgDeRefDelete(i->second);
i->second->deRef();
}
m_all_models.clear();
callback_manager->clear(CB_ITEM);