mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-01 16:32:21 +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
+1
-1
@@ -3256,7 +3256,7 @@ bool ZoneDatabase::LoadFactionData()
|
||||
|
||||
auto row = results.begin();
|
||||
|
||||
max_faction = atoi(row[0]);
|
||||
max_faction = row[0] ? atoi(row[0]) : 0;
|
||||
faction_array = new Faction*[max_faction+1];
|
||||
for(unsigned int index=0; index<max_faction; index++)
|
||||
faction_array[index] = nullptr;
|
||||
|
||||
Reference in new issue
Block a user