From f43fffc08339aac06bf59351e58fe7487aaebe10 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Tue, 10 Aug 2010 22:46:08 +0000 Subject: [PATCH] - added more debug for game end crash --- source/glest_game/type_instances/unit.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/glest_game/type_instances/unit.cpp b/source/glest_game/type_instances/unit.cpp index 5b38785c..373a1151 100644 --- a/source/glest_game/type_instances/unit.cpp +++ b/source/glest_game/type_instances/unit.cpp @@ -255,6 +255,7 @@ Unit::~Unit(){ unitParticleSystems.back()->fade(); unitParticleSystems.pop_back(); } + SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__); stopDamageParticles(); SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__); @@ -1441,8 +1442,10 @@ CommandResult Unit::undoCommand(Command *command){ void Unit::stopDamageParticles(){ // stop fire if(fire!=NULL) { + SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__); fire->fade(); fire= NULL; + SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__); } // stop additional particles while(!damageParticleSystems.empty()) {