Initialize flag. Fixes weapon changing animation between shots when AI uses shotgun.
authorunc0rr
Sun, 09 Jan 2011 21:50:59 +0300
changeset 4827 7895de87636b
parent 4826 d6a0a38407c8
child 4828 4ed71ae56b05
Initialize flag. Fixes weapon changing animation between shots when AI uses shotgun.
hedgewars/HHHandlers.inc
--- a/hedgewars/HHHandlers.inc	Sun Jan 09 21:37:45 2011 +0300
+++ b/hedgewars/HHHandlers.inc	Sun Jan 09 21:50:59 2011 +0300
@@ -100,6 +100,8 @@
     Hedgehog: PHedgehog;
     s: boolean;
 begin
+s:= false;
+
 weap:= TAmmoType(Gear^.MsgParam);
 Hedgehog:= Gear^.Hedgehog;