Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
4030bdef
Commit
4030bdef
authored
1 year ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Fix nullptr crash in AO
parent
620259ac
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/aoengine.cpp
+17
-15
17 additions, 15 deletions
indra/newview/aoengine.cpp
with
17 additions
and
15 deletions
indra/newview/aoengine.cpp
+
17
−
15
View file @
4030bdef
...
...
@@ -1205,25 +1205,27 @@ bool AOEngine::removeAnimation(const AOSet* set, AOSet::AOState* state, S32 inde
}
LLViewerInventoryItem
*
item
=
gInventory
.
getItem
(
state
->
mAnimations
[
index
].
mInventoryUUID
);
// check if this item is actually an animation link
bool
move
=
true
;
if
(
item
->
getIsLinkType
())
if
(
item
)
{
if
(
item
->
getInventoryType
()
==
LLInventoryType
::
IT_ANIMATION
)
// check if this item is actually an animation link
bool
move
=
true
;
if
(
item
->
getIsLinkType
())
{
// it is an animation link, so mark it to be purged
move
=
false
;
if
(
item
->
getInventoryType
()
==
LLInventoryType
::
IT_ANIMATION
)
{
// it is an animation link, so mark it to be purged
move
=
false
;
}
}
}
// this item was not an animation link, move it to lost and found
if
(
move
)
{
gInventory
.
changeItemParent
(
item
,
gInventory
.
findCategoryUUIDForType
(
LLFolderType
::
FT_LOST_AND_FOUND
),
false
);
LLNotificationsUtil
::
add
(
"AOForeignItemsFound"
,
LLSD
());
update
();
return
false
;
// this item was not an animation link, move it to lost and found
if
(
move
)
{
gInventory
.
changeItemParent
(
item
,
gInventory
.
findCategoryUUIDForType
(
LLFolderType
::
FT_LOST_AND_FOUND
),
false
);
LLNotificationsUtil
::
add
(
"AOForeignItemsFound"
,
LLSD
());
update
();
return
false
;
}
}
// purge the item from inventory
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment