Fix crash when attackbar wasn't deleted, but hedgehog gear was
authorunc0rr
Sun, 25 Jan 2009 13:58:59 +0000
changeset 1749 7170f626e9d6
parent 1748 27dd2967fc65
child 1750 36023de30dac
Fix crash when attackbar wasn't deleted, but hedgehog gear was
hedgewars/HHHandlers.inc
--- a/hedgewars/HHHandlers.inc	Sun Jan 25 13:57:48 2009 +0000
+++ b/hedgewars/HHHandlers.inc	Sun Jan 25 13:58:59 2009 +0000
@@ -510,7 +510,8 @@
 	begin
 	TurnTimeLeft:= 0;
 	isCursorVisible:= false;
-	Gear^.State:= Gear^.State and not (gstHHDriven or gstAnimation);
+	Gear^.State:= Gear^.State and not (gstHHDriven or gstAnimation or gstAttacking);
+	AttackBar:= 0;
 	if Gear^.Damage > 0 then
 		Gear^.State:= Gear^.State and not (gstHHJumping or gstHHHJump);
 	exit