mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-25 18:47:35 +00:00
[Bug Fix] Fix loading world shared task state (#2398)
The default for this field is -1 not 0, so on world restarts this was marking all elements completed
This commit is contained in:
@@ -356,7 +356,7 @@ void SharedTaskManager::LoadSharedTaskState()
|
|||||||
e.step = ad.step;
|
e.step = ad.step;
|
||||||
e.optional = ad.optional;
|
e.optional = ad.optional;
|
||||||
e.req_activity_id = ad.req_activity_id;
|
e.req_activity_id = ad.req_activity_id;
|
||||||
e.activity_state = sta.completed_time == 0 ? ActivityHidden : ActivityCompleted;
|
e.activity_state = sta.completed_time > 0 ? ActivityCompleted : ActivityHidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user