- another bugfix from coverity

This commit is contained in:
SoftCoder 2015-11-29 17:07:49 -08:00
parent 63bf258705
commit cfa9f38155
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ void Thread::start() {
BaseThread *base_thread = dynamic_cast<BaseThread *>(this);
if(base_thread) base_thread->setStarted(true);
string uniqueId = base_thread->getUniqueID();
string uniqueId = (base_thread ? base_thread->getUniqueID() : "new_base_thread_prev_null");
thread = SDL_CreateThread(beginExecution, uniqueId.c_str(), this);
if(thread == NULL) {
if(base_thread) base_thread->setStarted(false);