[Bug Fix] Adjustment for nullptr crash (#2232)

This commit is contained in:
Chris Miles 2022-05-31 21:24:12 -05:00 committed by GitHub
parent 291aaea581
commit a45117cd04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2737,13 +2737,12 @@ std::string Zone::GetZoneDescription()
{ {
if (!IsLoaded()) { if (!IsLoaded()) {
return fmt::format( return fmt::format(
"{} PID ({})", "PID ({})",
IsStaticZone() ? "Static" : "Dynamic",
EQ::GetPID() EQ::GetPID()
); );
} }
auto d = fmt::format( return fmt::format(
"{} ({}){}{}", "{} ({}){}{}",
GetLongName(), GetLongName(),
GetZoneID(), GetZoneID(),
@ -2764,8 +2763,6 @@ std::string Zone::GetZoneDescription()
"" ""
) )
); );
return d;
} }
void Zone::SendReloadMessage(std::string reload_type) void Zone::SendReloadMessage(std::string reload_type)