Permalink
Browse files

Revert "qtscript: Do not call destroyed event twice for each object."

This reverts commit a51de16.
Fixes #3175.
  • Loading branch information...
1 parent 9e63fe3 commit 4f722254f01c3cb025809501e6c5c01a7630a0d3 @cybersphinx cybersphinx committed Feb 23, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/objmem.cpp
View
@@ -183,10 +183,7 @@ void objmemUpdate(void)
break;
}
psCBObjDestroyed = NULL;
- if (psCurr->died == gameTime || psCurr->died == 2)
- {
- triggerEventDestroyed(psCurr);
- }
+ triggerEventDestroyed(psCurr);
psPrev = psCurr;
}

0 comments on commit 4f72225

Please sign in to comment.