diff options
author | McCabe Maxsted | 2009-09-15 01:29:41 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-09-15 01:29:41 -0700 |
commit | 579c8ff5f8cda79709bb3a7f3e28273586d61cf0 (patch) | |
tree | 0b611fb9e266b0f02beb467b96ef3de5c4215605 /linden | |
parent | Merged in jacek/next (diff) | |
download | meta-impy-579c8ff5f8cda79709bb3a7f3e28273586d61cf0.zip meta-impy-579c8ff5f8cda79709bb3a7f3e28273586d61cf0.tar.gz meta-impy-579c8ff5f8cda79709bb3a7f3e28273586d61cf0.tar.bz2 meta-impy-579c8ff5f8cda79709bb3a7f3e28273586d61cf0.tar.xz |
Fixed unhandled exception in llviewerobjectlist.cpp
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/newview/llviewerobjectlist.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewerobjectlist.cpp b/linden/indra/newview/llviewerobjectlist.cpp index 78c1730..cf37058 100644 --- a/linden/indra/newview/llviewerobjectlist.cpp +++ b/linden/indra/newview/llviewerobjectlist.cpp | |||
@@ -165,6 +165,8 @@ U64 LLViewerObjectList::getIndex(const U32 local_id, | |||
165 | 165 | ||
166 | BOOL LLViewerObjectList::removeFromLocalIDTable(const LLViewerObject &object) | 166 | BOOL LLViewerObjectList::removeFromLocalIDTable(const LLViewerObject &object) |
167 | { | 167 | { |
168 | if (object.mRegionp) | ||
169 | { | ||
168 | U32 local_id = object.mLocalID; | 170 | U32 local_id = object.mLocalID; |
169 | LLHost region_host = object.getRegion()->getHost(); | 171 | LLHost region_host = object.getRegion()->getHost(); |
170 | U32 ip = region_host.getAddress(); | 172 | U32 ip = region_host.getAddress(); |
@@ -175,6 +177,8 @@ BOOL LLViewerObjectList::removeFromLocalIDTable(const LLViewerObject &object) | |||
175 | U64 indexid = (((U64)index) << 32) | (U64)local_id; | 177 | U64 indexid = (((U64)index) << 32) | (U64)local_id; |
176 | return sIndexAndLocalIDToUUID.erase(indexid) > 0 ? TRUE : FALSE; | 178 | return sIndexAndLocalIDToUUID.erase(indexid) > 0 ? TRUE : FALSE; |
177 | } | 179 | } |
180 | return FALSE; | ||
181 | } | ||
178 | 182 | ||
179 | void LLViewerObjectList::setUUIDAndLocal(const LLUUID &id, | 183 | void LLViewerObjectList::setUUIDAndLocal(const LLUUID &id, |
180 | const U32 local_id, | 184 | const U32 local_id, |