hedgewars/uScript.pas
changeset 5638 e35ba2a400d8
parent 5612 2638dec1b323
child 5655 44c2d19f79e2
child 5676 a655dfab27d7
--- a/hedgewars/uScript.pas	Sun Aug 21 15:11:00 2011 -0400
+++ b/hedgewars/uScript.pas	Sun Aug 21 19:29:04 2011 -0400
@@ -1106,7 +1106,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;