From: Matthias Braun Date: Tue, 23 Jan 2007 12:31:17 +0000 (+0000) Subject: std::exception(const char*) seems to be an msvc extension... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1411904ec0279f5fb748facd06f7d24a7f9cc538;p=supertux.git std::exception(const char*) seems to be an msvc extension... SVN-Revision: 4660 --- diff --git a/src/audio/sound_manager.cpp b/src/audio/sound_manager.cpp index 2e83630e6..af6da5ca4 100644 --- a/src/audio/sound_manager.cpp +++ b/src/audio/sound_manager.cpp @@ -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 source (new OpenALSoundSource());