mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-11 15:22:26 +00:00
Bug fix in SharedTaskManager::LoadSharedTaskState
This commit is contained in:
parent
c5f739cbda
commit
c2ab2a232b
@ -408,7 +408,7 @@ bool SharedTaskManager::LoadSharedTaskState()
|
|||||||
results = database.QueryDatabase(query);
|
results = database.QueryDatabase(query);
|
||||||
if (results.Success() && results.RowCount() == 1) {
|
if (results.Success() && results.RowCount() == 1) {
|
||||||
auto row = results.begin();
|
auto row = results.begin();
|
||||||
next_id = atoi(row[0]);
|
next_id = row[0] ? atoi(row[0]) : 0;
|
||||||
} else {
|
} else {
|
||||||
next_id = 0; // oh well
|
next_id = 0; // oh well
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user