mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 13:41:31 +00:00
[Bug Fix] Adjustment for nullptr crash (#2232)
This commit is contained in:
parent
291aaea581
commit
a45117cd04
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user