summaryrefslogtreecommitdiff
path: root/src/sound/sound_driver.hpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-07-07 20:31:23 +0000
committerpeter1138 <peter1138@openttd.org>2007-07-07 20:31:23 +0000
commit2723db28844be0c3413e6e02aa11f0ecc9144ab0 (patch)
tree0bd6f98a4074b190b9e2d63d8410f76306430377 /src/sound/sound_driver.hpp
parent855e9d075101344079a8c7c66cbb25dc63eea7e1 (diff)
downloadopenttd-2723db28844be0c3413e6e02aa11f0ecc9144ab0.tar.xz
(svn r10471) -Codechange: implement driver probing priority so that 'preferred' drivers are loaded first
Diffstat (limited to 'src/sound/sound_driver.hpp')
-rw-r--r--src/sound/sound_driver.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sound/sound_driver.hpp b/src/sound/sound_driver.hpp
index de1a19ac8..04c9e9224 100644
--- a/src/sound/sound_driver.hpp
+++ b/src/sound/sound_driver.hpp
@@ -14,7 +14,7 @@ class SoundDriverFactoryBase: public DriverFactoryBase {
template <class T>
class SoundDriverFactory: public SoundDriverFactoryBase {
public:
- SoundDriverFactory() { this->RegisterDriver(((T *)this)->GetName(), Driver::DT_SOUND); }
+ SoundDriverFactory() { this->RegisterDriver(((T *)this)->GetName(), Driver::DT_SOUND, ((T *)this)->priority); }
/**
* Get the long, human readable, name for the Driver-class.