Fixed bug #640812: Flameshield segfault
This commit is contained in:
parent
442c964a1a
commit
0d72da2893
2 changed files with 2 additions and 1 deletions
|
@ -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>
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue