From 9395d6f610d54f97c2e5dbc3f49c6dc33577eedc Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 7 Dec 2009 15:58:05 -0800 Subject: ext-3152 - crash when opening debug console bad cast --- indra/newview/llviewermenu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 9c52153ee4..7d673f536d 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -45,6 +45,7 @@ #include "llagentwearables.h" #include "llagentpilot.h" #include "llcompilequeue.h" +#include "llconsole.h" #include "lldebugview.h" #include "llfilepicker.h" #include "llfirstuse.h" @@ -487,7 +488,7 @@ class LLAdvancedToggleConsole : public view_listener_t } else if ("debug" == console_type) { - toggle_visibility( (void*)((LLView*)gDebugView->mDebugConsolep) ); + toggle_visibility( (void*)static_cast(gDebugView->mDebugConsolep)); } else if (gTextureSizeView && "texture size" == console_type) { -- cgit v1.2.3