diff options
author | smatz <smatz@openttd.org> | 2009-01-25 13:05:58 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-01-25 13:05:58 +0000 |
commit | 0bce78a09501a01cf11dce180e6bf601e393e81d (patch) | |
tree | 0c64ec39608792cf08cceb2b12ef808c8fdb8565 | |
parent | 470da22ac3dd297766a3064b8e72aa8c601c74c7 (diff) | |
download | openttd-0bce78a09501a01cf11dce180e6bf601e393e81d.tar.xz |
(svn r15266) -Fix (r15159): compilation without threads was broken
-rw-r--r-- | src/thread_none.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread_none.cpp b/src/thread_none.cpp index f0863efaf..c8caf8978 100644 --- a/src/thread_none.cpp +++ b/src/thread_none.cpp @@ -12,7 +12,7 @@ } /** Mutex that doesn't do locking because it ain't needed when there're no threads */ -class ThreadMutex_None : ThreadMutex { +class ThreadMutex_None : public ThreadMutex { public: virtual void BeginCritical() {} virtual void EndCritical() {} @@ -20,5 +20,5 @@ public: /* static */ ThreadMutex *ThreadMutex::New() { - return new ThreadMutex_None; + return new ThreadMutex_None(); } |