--- 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;