std::exception(const char*) seems to be an msvc extension...
authorMatthias Braun <matze@braunis.de>
Tue, 23 Jan 2007 12:31:17 +0000 (12:31 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 23 Jan 2007 12:31:17 +0000 (12:31 +0000)
SVN-Revision: 4660

src/audio/sound_manager.cpp

index 2e83630..af6da5c 100644 (file)
@@ -126,7 +126,7 @@ OpenALSoundSource*
 SoundManager::intern_create_sound_source(const std::string& filename)
 {
   if(!sound_enabled)
-    throw new std::exception("sound disabled");
+    throw std::runtime_error("sound disabled");
 
   std::auto_ptr<OpenALSoundSource> source (new OpenALSoundSource());