Fix for no factions in database crashing the server and shared memory

This commit is contained in:
KimLS committed 2015-02-10 11:53:39 -08:00
1 parent f613d12c61
commit 9daf572ea7
3 files changed
+4 -10

No files matched your search

-3
View File
@@ -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);