From dc8e5f1d12613c71ffe60064269fea09877d3c8f Mon Sep 17 00:00:00 2001 From: Alexei Dobrohotov Date: Tue, 29 Oct 2019 18:51:58 +0300 Subject: [PATCH] Accept redundant volume and pitch StopSound arguments Exploited in Arktwend. --- components/compiler/extensions0.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/compiler/extensions0.cpp b/components/compiler/extensions0.cpp index 51732bed3..f3c4bfed7 100644 --- a/components/compiler/extensions0.cpp +++ b/components/compiler/extensions0.cpp @@ -361,7 +361,7 @@ namespace Compiler opcodePlayLoopSound3DExplicit); extensions.registerInstruction ("playloopsound3dvp", "cff", opcodePlayLoopSound3DVP, opcodePlayLoopSound3DVPExplicit); - extensions.registerInstruction ("stopsound", "c", opcodeStopSound, + extensions.registerInstruction ("stopsound", "cXX", opcodeStopSound, opcodeStopSoundExplicit); extensions.registerFunction ("getsoundplaying", 'l', "c", opcodeGetSoundPlaying, opcodeGetSoundPlayingExplicit);