From: Rudolf Polzer Date: Thu, 17 Jun 2010 07:17:39 +0000 (+0200) Subject: do not call destroy methods on the vtbls ;) X-Git-Tag: xonotic-v0.1.0preview~541^2~23^2^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=46bc83577de31069272f3e57730b407c6e2bcf13;p=xonotic%2Fxonotic-data.pk3dir.git do not call destroy methods on the vtbls ;) --- diff --git a/qcsrc/menu/menu.qc b/qcsrc/menu/menu.qc index ea0f68e88..121ceea5b 100644 --- a/qcsrc/menu/menu.qc +++ b/qcsrc/menu/menu.qc @@ -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); } };