mirror of
https://github.com/glest/glest-source.git
synced 2025-09-28 16:39:01 +02:00
- some bug fixes based on coverity scan
This commit is contained in:
@@ -247,8 +247,8 @@ void Thread::start() {
|
||||
|
||||
BaseThread *base_thread = dynamic_cast<BaseThread *>(this);
|
||||
if(base_thread) base_thread->setStarted(true);
|
||||
|
||||
thread = SDL_CreateThread(beginExecution, base_thread->getUniqueID().c_str(), this);
|
||||
string uniqueId = base_thread->getUniqueID();
|
||||
thread = SDL_CreateThread(beginExecution, uniqueId.c_str(), this);
|
||||
if(thread == NULL) {
|
||||
if(base_thread) base_thread->setStarted(false);
|
||||
|
||||
|
Reference in New Issue
Block a user