EEntityDeleted now provides an EntityWrapper instead of just an ID

This commit is contained in:
2016-03-09 23:47:42 +01:00
parent 91bad517d3
commit f6113b9d9c
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -284,7 +284,7 @@ bool AnimationSystem::OnAutoAnimationBlend(Events::AutoAnimationBlend& e)
bool AnimationSystem::OnEntityDeleted(Events::EntityDeleted& e)
{
EntityWrapper entity = EntityWrapper(m_World, e.DeletedEntity);
EntityWrapper entity = e.DeletedEntity;
if (entity.HasComponent("Model")) {
Model* model;