]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
do not call destroy methods on the vtbls ;)
authorRudolf Polzer <divverent@alientrap.org>
Thu, 17 Jun 2010 07:17:39 +0000 (09:17 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 17 Jun 2010 07:17:39 +0000 (09:17 +0200)
qcsrc/menu/menu.qc

index ea0f68e8848be9d9e7290a779f864792afc7b4dd..121ceea5b5c0ff07fce160462d581fcc8540c60d 100644 (file)
@@ -759,8 +759,9 @@ void() m_shutdown =
        m_hide();
        for(e = NULL; (e = nextent(e)) != NULL; )
        {
-               if(e.destroy)
-                       e.destroy(e);
+               if(e.classname != "vtbl")
+                       if(e.destroy)
+                               e.destroy(e);
        }
 };