hedgewars/uScript.pas
branchhedgeroid
changeset 5655 44c2d19f79e2
parent 5644 4ad07103cfae
parent 5638 e35ba2a400d8
child 5725 e27100a0e2d0
--- a/hedgewars/uScript.pas	Mon Aug 22 03:57:11 2011 +0200
+++ b/hedgewars/uScript.pas	Wed Aug 24 12:34:37 2011 +0200
@@ -1109,7 +1109,7 @@
         begin
         gear:= GearByUID(lua_tointeger(L, 2));
         if (gear <> nil) and (gear^.Kind = gtHedgehog) and (gear^.Hedgehog <> nil) then
-            PlaySound(TSound(lua_tointeger(L, 1)),gear^.Hedgehog^.Team^.Voicepack)
+            AddVoice(TSound(lua_tointeger(L, 1)),gear^.Hedgehog^.Team^.Voicepack)
         end
     else LuaError('Lua: Wrong number of parameters passed to PlaySound!');
     lc_playsound:= 0;