Skip to content

Commit

Permalink
Model Renderer: Don't delete objects during deletion notification
Browse files Browse the repository at this point in the history
There is a chance that the object being deleted will still be later
notified, so it's better to ensure that deletion occurs after everyone
has been notified.
  • Loading branch information
skyjake committed Aug 24, 2015
1 parent 8686dbf commit 8fdee79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/apps/client/src/render/playerweaponanimator.cpp
Expand Up @@ -65,7 +65,7 @@ DENG2_PIMPL_NOREF(PlayerWeaponAnimator)

void assetBeingDeleted(Asset &)
{
animator.reset();
de::trash(animator.release());
modelAuxData = nullptr;
}

Expand Down

0 comments on commit 8fdee79

Please sign in to comment.