fix build when using --without-audio

This was SVN commit r13389.
This commit is contained in:
stwf
2013-05-02 13:58:28 +00:00
parent 683f22cdb1
commit bf959e1c46
3 changed files with 11 additions and 0 deletions
+2
View File
@@ -341,8 +341,10 @@ JSBool SetPaused(JSContext* cx, uintN argc, jsval* vp)
try
{
g_Game->m_Paused = ToPrimitive<bool> (JS_ARGV(cx, vp)[0]);
#if CONFIG2_AUDIO
if ( g_SoundManager )
g_SoundManager->Pause(g_Game->m_Paused);
#endif
}
catch (PSERROR_Scripting_ConversionFailed)
{