mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-06 10:44:08 +00:00
Fix missions re-ordering on reload (#686)
* Fix missions re-ordering on reload Check for success rather than failure * Add a comment * Get base value from database * Update Mission.h
This commit is contained in:
@@ -240,3 +240,12 @@ std::vector<Spawner*> dZoneManager::GetSpawnersInGroup(std::string group) {
|
||||
|
||||
return spawnersInGroup;
|
||||
}
|
||||
|
||||
uint32_t dZoneManager::GetUniqueMissionIdStartingValue() {
|
||||
if (m_UniqueMissionIdStart == 0) {
|
||||
auto tableData = CDClientDatabase::ExecuteQuery("SELECT COUNT(*) FROM Missions WHERE isMission = 0 GROUP BY isMission;");
|
||||
m_UniqueMissionIdStart = tableData.getIntField(0, -1);
|
||||
tableData.finalize();
|
||||
}
|
||||
return m_UniqueMissionIdStart;
|
||||
}
|
||||
|
Reference in New Issue
Block a user