[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()) {
return fmt::format(
"{} PID ({})",
IsStaticZone() ? "Static" : "Dynamic",
"PID ({})",
EQ::GetPID()
);
}
auto d = fmt::format(
return fmt::format(
"{} ({}){}{}",
GetLongName(),
GetZoneID(),
@ -2764,8 +2763,6 @@ std::string Zone::GetZoneDescription()
""
)
);
return d;
}
void Zone::SendReloadMessage(std::string reload_type)