# HG changeset patch
# User Wuzzy <Wuzzy2@mail.ru>
# Date 1547158220 -3600
# Node ID c572eb57dd2d3b8dee71fa284db3435f3e61e5c7
# Parent  90893b3979330f6059c15dede5468b43fe0489ff
Fix Racer ghost not resetting properly after a skip (bug 565)

diff -r 90893b397933 -r c572eb57dd2d ChangeLog.txt
--- a/ChangeLog.txt	Thu Jan 10 21:24:32 2019 +0100
+++ b/ChangeLog.txt	Thu Jan 10 23:10:20 2019 +0100
@@ -18,6 +18,7 @@
  + The Specialists: Unlock game scheme
  + The Specialists: Add script parameter support to set custom specialists order
  * Balanced Random Weapon: Fix Lua errors after using Time Box
+ * Racer: Fix racer ghost not getting reset after a skip
  * King Mode: Fix team sometimes not being killed properly if king drowned
  * King Mode: Kill resurrected minions if king is not alive
 
diff -r 90893b397933 -r c572eb57dd2d share/hedgewars/Data/Scripts/Multiplayer/Racer.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Thu Jan 10 21:24:32 2019 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Thu Jan 10 23:10:20 2019 +0100
@@ -834,6 +834,7 @@
         trackTime = 0
 
         currCount = 0 -- hopefully this solves problem
+        fastIndex = 0
         AddAmmo(CurrentHedgehog, amAirAttack, 0)
         gTimer = 0