summaryrefslogtreecommitdiff
path: root/src/sound
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2015-08-12 20:50:10 +0000
committerrubidium <rubidium@openttd.org>2015-08-12 20:50:10 +0000
commitc4d46127369d3fbcf5b6839e20264b763550067a (patch)
treefd2ecfc54c09b8a67c899669240e8940436ba235 /src/sound
parent9f5503ba8f18db05e2358a2d83f1533e23d456ce (diff)
downloadopenttd-c4d46127369d3fbcf5b6839e20264b763550067a.tar.xz
(svn r27383) -Fix: win32 sound driver would not catch the exception due to constness difference
Diffstat (limited to 'src/sound')
-rw-r--r--src/sound/win32_s.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sound/win32_s.cpp b/src/sound/win32_s.cpp
index 0cd632714..45f88172a 100644
--- a/src/sound/win32_s.cpp
+++ b/src/sound/win32_s.cpp
@@ -81,7 +81,7 @@ const char *SoundDriver_Win32::Start(const char * const *parm)
PrepareHeader(&_wave_hdr[1]);
if (NULL == (_thread = CreateThread(NULL, 8192, SoundThread, 0, 0, &_threadId))) throw "Failed to create thread";
- } catch (char *error) {
+ } catch (const char *error) {
this->Stop();
return error;
}