Fix for freeze when AI killed by mines or other self-inflicted wounds

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1150 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Overhaul
2007-08-02 09:04:59 +00:00
parent 17449feabd
commit bef9d82933
+6
View File
@@ -1213,6 +1213,12 @@ void ActionDone(SOLDIERTYPE *pSoldier)
// although NewDest isn't called. A newSit. could cancel it before then!
pSoldier->bPathStored = FALSE;
}
if (pSoldier->uiStatusFlags & SOLDIER_DEAD)
{
// The last action killed the soldier (stepped on a mine, detonated a LAW too close, etc)
EndAIGuysTurn( pSoldier);
}
}