summaryrefslogtreecommitdiff
path: root/src/music/music_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
commit8b81cdd2a602d63b6b7f595383cedecf54046650 (patch)
tree0bd6f98a4074b190b9e2d63d8410f76306430377 /src/music/music_driver.hpp
parent0543657b75fe3191d4232c2ebbac80f8b860617f (diff)
downloadopenttd-8b81cdd2a602d63b6b7f595383cedecf54046650.tar.xz
(svn r10471) -Codechange: implement driver probing priority so that 'preferred' drivers are loaded first
Diffstat (limited to 'src/music/music_driver.hpp')
-rw-r--r--src/music/music_driver.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/music/music_driver.hpp b/src/music/music_driver.hpp
index b4486ef94..b9e0ec065 100644
--- a/src/music/music_driver.hpp
+++ b/src/music/music_driver.hpp
@@ -22,7 +22,7 @@ class MusicDriverFactoryBase: public DriverFactoryBase {
template <class T>
class MusicDriverFactory: public MusicDriverFactoryBase {
public:
- MusicDriverFactory() { this->RegisterDriver(((T *)this)->GetName(), Driver::DT_MUSIC); }
+ MusicDriverFactory() { this->RegisterDriver(((T *)this)->GetName(), Driver::DT_MUSIC, ((T *)this)->priority); }
/**
* Get the long, human readable, name for the Driver-class.