From 0d8dceea4310fde5706b3ce1c70609d72a38efdf Mon Sep 17 00:00:00 2001 From: John Schoenick Date: Wed, 9 Sep 2015 18:35:41 -0700 Subject: Updated the SDK with the latest code from the TF and HL2 branches. --- mp/src/game/client/vgui_debugoverlaypanel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mp/src/game/client/vgui_debugoverlaypanel.cpp') diff --git a/mp/src/game/client/vgui_debugoverlaypanel.cpp b/mp/src/game/client/vgui_debugoverlaypanel.cpp index c3734147..32a7ee83 100644 --- a/mp/src/game/client/vgui_debugoverlaypanel.cpp +++ b/mp/src/game/client/vgui_debugoverlaypanel.cpp @@ -166,7 +166,8 @@ public: if ( debugOverlayPanel ) { debugOverlayPanel->SetParent( (vgui::Panel *)NULL ); - delete debugOverlayPanel; + debugOverlayPanel->MarkForDeletion(); + debugOverlayPanel = NULL; } } }; -- cgit v1.2.3