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 | 84848f8a28d951a1ceaad928a82578adb55da641 (patch) | |
tree | 0c64ec39608792cf08cceb2b12ef808c8fdb8565 /src | |
parent | c1cf3934fa5bd523dd1df01cf505c9f06927701d (diff) | |
download | openttd-84848f8a28d951a1ceaad928a82578adb55da641.tar.xz |
(svn r15266) -Fix (r15159): compilation without threads was broken
Diffstat (limited to 'src')
-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(); } |