summaryrefslogtreecommitdiff
path: root/src/thread_none.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-01-25 13:05:58 +0000
committersmatz <smatz@openttd.org>2009-01-25 13:05:58 +0000
commit0bce78a09501a01cf11dce180e6bf601e393e81d (patch)
tree0c64ec39608792cf08cceb2b12ef808c8fdb8565 /src/thread_none.cpp
parent470da22ac3dd297766a3064b8e72aa8c601c74c7 (diff)
downloadopenttd-0bce78a09501a01cf11dce180e6bf601e393e81d.tar.xz
(svn r15266) -Fix (r15159): compilation without threads was broken
Diffstat (limited to 'src/thread_none.cpp')
-rw-r--r--src/thread_none.cpp4
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();
}