diff options
author | rubidium <rubidium@openttd.org> | 2009-01-20 03:12:46 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-20 03:12:46 +0000 |
commit | bb770717494ec94d54edb4c1dd1f5a7a0c830ead (patch) | |
tree | f26af7908c8ee5a9d45520a8f2d6aff9f6bfdec6 /src/saveload | |
parent | 5f3772a42c322a99d2ea57b6c97b76fceccbb781 (diff) | |
download | openttd-bb770717494ec94d54edb4c1dd1f5a7a0c830ead.tar.xz |
(svn r15158) -Cleanup: remove some unused/unneeded cruft from the thread generalisation.
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/saveload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp index 58808f84f..b7dc4e9a9 100644 --- a/src/saveload/saveload.cpp +++ b/src/saveload/saveload.cpp @@ -1720,7 +1720,7 @@ SaveOrLoadResult SaveOrLoad(const char *filename, int mode, Subdirectory sb) SaveFileStart(); if (_network_server || - (_save_thread = ThreadObject::New(&SaveFileToDiskThread, NULL)) == NULL) { + !ThreadObject::New(&SaveFileToDiskThread, NULL, &_save_thread)) { if (!_network_server) DEBUG(sl, 1, "Cannot create savegame thread, reverting to single-threaded mode..."); SaveOrLoadResult result = SaveFileToDisk(false); |