diff options
author | Steve Bennetts <steve@lindenlab.com> | 2009-12-03 12:05:50 -0800 |
---|---|---|
committer | Steve Bennetts <steve@lindenlab.com> | 2009-12-03 12:05:50 -0800 |
commit | 2d3f9a4832c80efc63942725a54e191d2050ff1e (patch) | |
tree | f79d74313bb0afbc8feddf93a87789c88b3b50ee /indra/newview | |
parent | 18901432e93ab887726b58354ae45ddb43e8ed27 (diff) |
Fixed a crash when clearing private data twice.
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llteleporthistory.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llteleporthistory.cpp b/indra/newview/llteleporthistory.cpp index cc4689062e..1315887c37 100644 --- a/indra/newview/llteleporthistory.cpp +++ b/indra/newview/llteleporthistory.cpp @@ -167,7 +167,10 @@ void LLTeleportHistory::onHistoryChanged() void LLTeleportHistory::purgeItems() { - mItems.erase(mItems.begin(), mItems.end()-1); + if (mItems.size() > 0) + { + mItems.erase(mItems.begin(), mItems.end()-1); + } // reset the count mRequestedItem = -1; mCurrentItem = 0; |