# HG changeset patch
# User Wuzzy <almikes@aol.com>
# Date 1506114472 -7200
# Node ID 47be9f3e61e9b1952222f0f7af88c3053a173f03
# Parent  24cd4840d3e2559d03238b1e988626c57d30f5c3
Fix charging sound continuing to play on hog damage (#236)

diff -r 24cd4840d3e2 -r 47be9f3e61e9 hedgewars/uGearsHedgehog.pas
--- a/hedgewars/uGearsHedgehog.pas	Fri Sep 22 19:26:57 2017 +0200
+++ b/hedgewars/uGearsHedgehog.pas	Fri Sep 22 23:07:52 2017 +0200
@@ -1262,6 +1262,7 @@
     isCursorVisible:= false;
     HHGear^.State:= HHGear^.State and (not (gstHHDriven or gstAnimation or gstAttacking));
     AttackBar:= 0;
+    StopSound(sndThrowPowerUp);
     LuaEndTurnRequested:= false;
     LuaNoEndTurnTaunts:= false;
     if HHGear^.Damage > 0 then