mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-09 02:13:55 +00:00
[Crash] Fixes a crash when the faction_list db table is empty. (#4511)
Co-authored-by: KimLS <KimLS@peqtgc.com>
This commit is contained in:
1 parent
520943ebf1
commit
ae198ae043
1 file changed
+3
@@ -3472,6 +3472,9 @@ bool ZoneDatabase::LoadFactionData()
|
||||
}
|
||||
|
||||
auto& fmr_row = faction_max_results.begin();
|
||||
if (fmr_row[0] == nullptr) {
|
||||
return false;
|
||||
}
|
||||
|
||||
max_faction = Strings::ToUnsignedInt(fmr_row[0]);
|
||||
faction_array = new Faction *[max_faction + 1];
|
||||
|
||||
Reference in new issue
Block a user