mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 05:21:29 +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:
parent
520943ebf1
commit
ae198ae043
@ -3472,6 +3472,9 @@ bool ZoneDatabase::LoadFactionData()
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto& fmr_row = faction_max_results.begin();
|
auto& fmr_row = faction_max_results.begin();
|
||||||
|
if (fmr_row[0] == nullptr) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
max_faction = Strings::ToUnsignedInt(fmr_row[0]);
|
max_faction = Strings::ToUnsignedInt(fmr_row[0]);
|
||||||
faction_array = new Faction *[max_faction + 1];
|
faction_array = new Faction *[max_faction + 1];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user