Bug fix in SharedTaskManager::LoadSharedTaskState

This commit is contained in:
Michael Cook (mackal) 2019-06-07 01:39:43 -04:00
parent c5f739cbda
commit c2ab2a232b

View File

@ -408,7 +408,7 @@ bool SharedTaskManager::LoadSharedTaskState()
results = database.QueryDatabase(query);
if (results.Success() && results.RowCount() == 1) {
auto row = results.begin();
next_id = atoi(row[0]);
next_id = row[0] ? atoi(row[0]) : 0;
} else {
next_id = 0; // oh well
}