diff options
author | richard <none@none> | 2009-12-07 15:58:05 -0800 |
---|---|---|
committer | richard <none@none> | 2009-12-07 15:58:05 -0800 |
commit | 9395d6f610d54f97c2e5dbc3f49c6dc33577eedc (patch) | |
tree | b1eafb2dc23fb2d117fa173022e524eff18a6603 /indra | |
parent | 3cf11892e430217dc4bf3b64d650e6316242c9c2 (diff) |
ext-3152 - crash when opening debug console
bad cast
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llviewermenu.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<LLUICtrl*>(gDebugView->mDebugConsolep)); } else if (gTextureSizeView && "texture size" == console_type) { |