# HG changeset patch
# User nemo
# Date 1289595628 18000
# Node ID 24137d2be956e7d8fd978608febc2d7142a8de2f
# Parent  cf18de7ea3d407325234e5830f9ba84b9c9c5c83
off by 1 error in resurrector index

diff -r cf18de7ea3d4 -r 24137d2be956 hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Fri Nov 12 15:57:30 2010 -0500
+++ b/hedgewars/GSHandlers.inc	Fri Nov 12 16:00:28 2010 -0500
@@ -4246,7 +4246,7 @@
 
     if ((Gear^.Message and gmAttack) <> 0) and (hh^.Gear^.Health > 0) and (TurnTimeLeft > 0) then 
         begin
-        if Length(graves) > Gear^.Tag then Gear^.Tag:= 0;
+        if Length(graves) >= Gear^.Tag then Gear^.Tag:= 0;
         dec(hh^.Gear^.Health);
         if (hh^.Gear^.Health = 0) and (hh^.Gear^.Damage = 0) then
             hh^.Gear^.Damage:= 1;