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

This commit is contained in:
KimLS
2015-02-10 11:53:16 -08:00
parent f613d12c61
commit 9daf572ea7
3 changed files with 4 additions and 10 deletions
-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);