Fixed bug : Flameshield segfault

This commit is contained in:
jsalmon3 2002-11-19 19:55:01 +00:00
parent 442c964a1a
commit 0d72da2893
2 changed files with 2 additions and 1 deletions

View file

@ -984,6 +984,7 @@
<LI>Implemented tab completion for chatting (from Nehal Mistry).
<LI>Middle-click pastes from clipboard(Win32) or cut buffer(X11) in
input boxes (from Nehal Mistry).
<LI>Fixed bug #640812: Flameshield segfault (from Jimmy Salmon).
<LI>+++
</UL>
</UL>

View file

@ -3222,7 +3222,7 @@ global void HitUnit(Unit* attacker,Unit* target,int damage)
}
if( GodMode ) {
if( attacker->Player==ThisPlayer ) {
if( attacker && attacker->Player==ThisPlayer ) {
damage=255;
}
if( target->Player==ThisPlayer ) {