Fixed fallback to default skin

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5448 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2010-05-16 01:36:18 +00:00
parent 0f32d738b4
commit db52b6907d

View File

@ -633,6 +633,7 @@ namespace GUIEngine
{
g_skin = new Skin(g_env->getSkin());
g_env->setSkin(g_skin);
g_skin->drop(); // GUI env grabbed it
assert(g_skin->getReferenceCount() == 1);
}
catch (std::runtime_error& err)