diff options
Diffstat (limited to 'linden/indra/newview/lltoolpie.cpp')
-rw-r--r-- | linden/indra/newview/lltoolpie.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/linden/indra/newview/lltoolpie.cpp b/linden/indra/newview/lltoolpie.cpp index 6879198..4bb2111 100644 --- a/linden/indra/newview/lltoolpie.cpp +++ b/linden/indra/newview/lltoolpie.cpp | |||
@@ -309,7 +309,13 @@ BOOL LLToolPie::pickAndShowMenu(S32 x, S32 y, MASK mask, BOOL always_show) | |||
309 | } | 309 | } |
310 | else if (mHitObjectID == gAgent.getID() ) | 310 | else if (mHitObjectID == gAgent.getID() ) |
311 | { | 311 | { |
312 | llassert_always(gPieSelf) ; | 312 | if(!gPieSelf) |
313 | { | ||
314 | //either at very early startup stage or at late quitting stage, | ||
315 | //this event is ignored. | ||
316 | return TRUE ; | ||
317 | } | ||
318 | |||
313 | gPieSelf->show(x, y, mPieMouseButtonDown); | 319 | gPieSelf->show(x, y, mPieMouseButtonDown); |
314 | } | 320 | } |
315 | else if (object) | 321 | else if (object) |