- added a code warning comment to avoid memory issues in the future

This commit is contained in:
Mark Vejvoda 2010-08-10 05:03:06 +00:00
parent 17ce7b8c71
commit a2e1b5fd57

View File

@ -109,6 +109,9 @@ Game::~Game(){
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
// MUST DO THIS LAST!!!! Because objects above have pointers to things like
// unit particles and fade them out etc and this end method deletes the original
// object pointers.
renderer.endGame();
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);