[*] If unit is being attack by MissileClipToTarget and it is removed from the map(transport,...), no damage is inflicted

This commit is contained in:
cybermind 2013-12-04 21:07:11 +06:00
parent 262b1571f9
commit 45441a848a

View file

@ -53,7 +53,7 @@ void MissileClipToTarget::Action()
}
if (this->NextMissileFrame(1, 0)) {
if (this->SourceUnit && this->SourceUnit->IsAliveOnMap()) {
if (this->SourceUnit && this->SourceUnit->IsAliveOnMap() && this->TargetUnit->IsAliveOnMap()) {
this->MissileHit();
}
this->TTL = 0;