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