mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-27 12:32:17 +00:00
Fix for no factions in database crashing the server and shared memory
This commit is contained in:
1 parent
f613d12c61
commit
9daf572ea7
3 files changed
+4
-10
No files matched your search
@@ -31,9 +31,6 @@ void LoadFactions(SharedDatabase *database) {
|
||||
uint32 lists = 0;
|
||||
uint32 max_list = 0;
|
||||
database->GetFactionListInfo(lists, max_list);
|
||||
if(lists == 0) {
|
||||
EQ_EXCEPT("Shared Memory", "Unable to get any factions from the database.");
|
||||
}
|
||||
|
||||
uint32 size = static_cast<uint32>(EQEmu::FixedMemoryHashSet<NPCFactionList>::estimated_size(lists, max_list));
|
||||
EQEmu::MemoryMappedFile mmf("shared/faction", size);
|
||||
|
||||
Reference in new issue
Block a user