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
+1 -1
View File
@@ -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;